Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

date added format change?


daverad

Recommended Posts

Hi everyone,

I would like to change the date format for "Date added" under categories/products. Currently it is in mm/dd/yyyy but would like to change it to dd/mm/yyyy.

 

I have changed the english.php file to

---------------------------------------------

 

@setlocale(LC_TIME, 'en_AUS.ISO_8859-1');

 

define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime()

define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()

define('DATE_FORMAT', 'd/m/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);

}

}

 

--------------------------------------------------

 

but this didn't seem to change it.

 

Any help is appreciated!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...