diff --git a/app/Utilities/helpers.php b/app/Utilities/helpers.php index 9656aacea..3cbf6a166 100644 --- a/app/Utilities/helpers.php +++ b/app/Utilities/helpers.php @@ -23,6 +23,22 @@ if (!function_exists('user')) { } } +if (!function_exists('company_date_format')) { + /** + * Format the given date based on company settings. + * + * @return string + */ + function company_date_format() + { + $date_time = new class() { + use DateTime; + }; + + return $date_time->getCompanyDateFormat(); + } +} + if (!function_exists('company_date')) { /** * Format the given date based on company settings.