|
@@ -525,6 +525,21 @@ if(!function_exists('date_short_with_tz_from_timestamp_divide1000')) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+if(!function_exists('get_end_of_month')) {
|
|
|
+ function get_end_of_month($value) {
|
|
|
+
|
|
|
+ if(!$value || empty($value)) return $default;
|
|
|
+ try {
|
|
|
+ $date = new DateTime($value);
|
|
|
+ $date->modify('last day of this month');
|
|
|
+ return $date->format("m/d/Y");
|
|
|
+ }
|
|
|
+ catch (Exception $e) {
|
|
|
+ return $e->getMessage();
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
if(!function_exists('friendly_date')) {
|
|
|
function friendly_date($value) {
|
|
|
if(!$value || empty($value)) return '';
|
|
@@ -1215,4 +1230,4 @@ if(!function_exists('determineTier')) {
|
|
|
function getLogo(){
|
|
|
if(config('app.internalName')) return asset('/img/'.config('app.internalName').'/logo_white.svg');
|
|
|
return asset('/img/logo_white.svg');
|
|
|
-}
|
|
|
+}
|