Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do i change the date format DD/MM/YY


Guest

Recommended Posts

I would like to change the date format from the american MM/DD/YY to the UK DD/MM/YY. This is probably really simple to do but i cant figure it out. lol

 

Cheers Matt ( A total noob)

Link to comment
Share on other sites

Hi

 

I changed the format in the file includes/languages/english.php

 

Then look for the lines

 

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

 

define('DOB_FORMAT_STRING', 'dd/mm/yyyy');

 

I think those are the only places it is stored.

 

HTH

 

Richard

Link to comment
Share on other sites

Hi

 

If you have a clean install of oscommerce, there is a contribution for a UK setup. this will tell you how to change everything you need.

 

I have not used it myself, as i have loads of mods on my site, but it might be a good place to start with a clean install.

 

cheers

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...