Topic: Date Format Modification to dd-Mmm-YYYY
A fourth date format like 31-Aug-2012 to be represented in the config.php as DDMMMYYYY or DDMmmYYYY or if only 8 chars are allowed then DDmmYYYY would be nice:
Some errors with form field names like TransToDate and OrdersToDate have been experienced when the following 4 files were looked into for minor changes:
pdf_report.inc
excel_report.inc
ui_view.inc
date_functions.inc
In fact the last file above was attempted to be modified in 3 places in vain with:
1.
return $day.$sep.date('M', $year.$month.$day).$sep.$year;
2.
elseif (strlen($date_) == 9)
{
if ($how == 3) {
$day = substr($date_,0,2);
$month = date('m', strtotime(substr($date_,3,3)));
$year = substr($date_,7,4);
} else return 0;
}
3.
elseif ($how == 2) // YYYYMMDD
list($year, $month, $day) = explode($sep, $date_);
else // $how == 3, DDMmmYYYY
list($year, $month, $day) = explode($sep, date('Y-m-d', strtotime($date_)));