fraro Posted February 24, 2003 Share Posted February 24, 2003 I would like to change the date format to YYYY-mm-dd. How should this look like: define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime() define('DATE_FORMAT', 'm/d/Y'); // this is used for date() define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); //// // Return date in raw format // $date should be in format mm/dd/yyyy // raw date is in format YYYYMMDD, or DDMMYYYY function tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2); } } Link to comment Share on other sites More sharing options...
Guest Posted February 24, 2003 Share Posted February 24, 2003 There are numerous threads dealing with changing the date format. Please do a search using *date format* (be sure to use the asterisks both in front and behind your string and Search All Terms). Link to comment Share on other sites More sharing options...
fraro Posted February 25, 2003 Author Share Posted February 25, 2003 Should I search in every file, both in catalog AND admin? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.