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

Posted

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

Posted

:?:

 

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

Posted

it looks like this now

 

Sunday 15 December, 2002

 

would like it shorter like this

 

Sunday 15 Dec, 2002 or Sunday 12/15/2002

 

thanks

Posted

Ok I see where ya do that, and I did it...but it still has the long word December rather Dec or 12/15/2002

 

:(

Archived

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

×
×
  • Create New...