Beispiel #1
0
 function get_date_nodate($input)
 {
     Date::setLocale('th');
     $create_date = new Date($input);
     //        return $create_date->add('543 years')->format('F Y');
     if ($create_date->isLeapYear() == 1 && date("m", strtotime($create_date)) == 2 && date("d", strtotime($create_date)) == 29) {
         return "ก.พ. " . (date("Y", strtotime($create_date)) + 543);
     } else {
         return $create_date->add('543 years')->format('F Y');
     }
 }