|
@@ -272,6 +272,20 @@ if(!function_exists('friendly_date')) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+if(!function_exists('friendly_date_month_year')) {
|
|
|
+ function friendly_date_month_year($value) {
|
|
|
+ if(!$value || empty($value)) return '';
|
|
|
+ try {
|
|
|
+ $result = strtotime($value);
|
|
|
+ $result = date("M YY", $result);
|
|
|
+ return $result;
|
|
|
+ }
|
|
|
+ catch (Exception $e) {
|
|
|
+ return $value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
if(!function_exists('friendlier_date')) {
|
|
|
function friendlier_date($value) {
|
|
|
if(!$value || empty($value)) return '';
|