KUBICO Posted August 17, 2005 Share Posted August 17, 2005 How can i change the date format in all oscommerce from MM/DD/YYYY to DD/MM/YYYY? Thanks, Solu??es de Com?rcio Electr?nio para Portugal Link to comment Share on other sites More sharing options...
Qihun Posted August 17, 2005 Share Posted August 17, 2005 How can i change the date format in all oscommerce from MM/DD/YYYY to DD/MM/YYYY? Thanks, Solu??es de Com?rcio Electr?nio para Portugal <{POST_SNAPBACK}> look into main language file , it should be there Link to comment Share on other sites More sharing options...
KUBICO Posted August 17, 2005 Author Share Posted August 17, 2005 look into main language file , it should be there <{POST_SNAPBACK}> I already try that but, maybe is another file too. KUBICO Link to comment Share on other sites More sharing options...
Qihun Posted August 17, 2005 Share Posted August 17, 2005 I want to be sure we are talking about the same place :D main language file is english.php (or that language you are use ) line 23 : define('DATE_FORMAT', 'm/d/Y'); // this is used for date() if you changed that line and the date in same format as before so try to reload the web page ( maybe it is cashed) or... maybe i forgot how to do it :blush: Link to comment Share on other sites More sharing options...
KUBICO Posted August 17, 2005 Author Share Posted August 17, 2005 i already try that. I want put the date MM/DD/YYYY to DD/MM/YYYY KUBICO Link to comment Share on other sites More sharing options...
KUBICO Posted August 18, 2005 Author Share Posted August 18, 2005 I need this Urgent. Anyone can help me? KUBICO :'( Link to comment Share on other sites More sharing options...
Qihun Posted August 18, 2005 Share Posted August 18, 2005 I need this Urgent. Anyone can help me? KUBICO :'( <{POST_SNAPBACK}> I revised myself and here is correct way ( should work ) change to lines in that file : define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime() define('DATE_FORMAT', 'd/m/Y'); // this is used for date() good luck Link to comment Share on other sites More sharing options...
KUBICO Posted August 18, 2005 Author Share Posted August 18, 2005 its working, i change this lines, too. //// // Return date in raw format // $date should be in format dd/mm/yyyy // raw date is in format YYYYMMDD, or DDMMYYYY function tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2); } } Thanks to all :D :D :D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.