Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

changing the date format?


keo77

Recommended Posts

Posted

is it possble to change the date format shown in the store from the american format mm/dd/yy to the european one dd/mm/yy?

Posted

Look at the code in includes/languages/german.php or spanish.php and in admin/includes/languages/german.php and you'll see that they are already set to DD/MM/YYYY format.

 

Vger

  • 2 months later...
Posted
Look at the code in includes/languages/german.php or spanish.php and in admin/includes/languages/german.php and you'll see that they are already set to DD/MM/YYYY format.

 

Vger

 

Hi Vger,

 

can I just clarify before making the changes mentioned above....do I simply change this (includes/languages/german.php):

 

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()

 

to:

 

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 strftime()

 

I just wanted to make sure that these were the only places the changes were required?

 

Many thanks,

 

Mark.

 

(sorry to hijack!)

Archived

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

×
×
  • Create New...