Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Date Format - change to DD/MM/YY


kenuk1

Recommended Posts

Hi all, Ive been trying to find some help on these forums but cant get what I need.

 

The dates on my site are all in the US format MM/DD/YY, does anyone know hoe to change the date to DD/MM/YY.

 

Its the same for products arriving soon and when you are signing up, gets a bit cionfusing for some apparently lol

 

Any help would be much appreciated!

 

Merry Xmas :)

Link to comment
Share on other sites

I believe you change that in whichever language file you are using.

I am using catalog/includes/languages/english.php

 

Right near the top you should see

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');

If you change it there, it should do the trick across the site, atleast for where the customers see.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

I believe you change that in whichever language file you are using.

I am using catalog/includes/languages/english.php

 

Right near the top you should see

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');

If you change it there, it should do the trick across the site, atleast for where the customers see.

 

 

I'll give it a shot, thanks a lot :thumbsup:

 

Merry Xmas!

Link to comment
Share on other sites

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

 

Not sure on this one, what do I change it too?

 

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

 

I changed all the others and it seems that the products that are "due in" are still showing MM/DD/YYYY>

 

Cheers

 

Ken

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...