Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change date format


KUBICO

Recommended Posts

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

I need this Urgent.

 

Anyone can help me?

 

KUBICO :'(

 

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...