Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing date format from mm/dd/yyyy to dd/mm/yyyy


pmdlong

Recommended Posts

I've only recently begun installing, configuring etc and noticed that when you create an account it asks for the date in the mm/dd/yyyy format. I would like it to ask for the date in the dd/mm/yyyy format (as used in the UK). Stop me if i'm wrong... but there doesn't appear to be a way to change the date format for the locale, so how could this be changed?

 

Any comments and suggestions would be greatly appreciated!

 

Thanks

Paul

Link to comment
Share on other sites

:?:

 

ok, I have looked around and no one seems to have the same question althought this is close...

 

I am looking in the right file and it says SHORT for date, but it comes up long... any reason why? and if that is wrong... how do I change it?

 

any help is great

thank you for your time

 

*****Here is the code I am looking at**********

 

// look in your $PATH_LOCALE/locale directory for available locales..

// on RedHat try 'en_US'

// on FreeBSD try 'en_US.ISO_8859-1'

// on Windows try 'en', or 'English'

setlocale(LC_TIME, 'en_US.ISO_8859-1');

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...