pmdlong Posted December 14, 2002 Share Posted December 14, 2002 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 More sharing options...
miyake Posted December 14, 2002 Share Posted December 14, 2002 I think it's in the following file... includes/languages/english.php Look for "mm/dd/yyyy" Link to comment Share on other sites More sharing options...
Evey Posted December 17, 2002 Share Posted December 17, 2002 :?: 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 More sharing options...
Evey Posted December 17, 2002 Share Posted December 17, 2002 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 Link to comment Share on other sites More sharing options...
eureka Posted December 17, 2002 Share Posted December 17, 2002 I have successfully changed the date format following this thread: http://www.oscommerce.com/forums/viewtopic.php...ght=date+format Do the same for your admin english.php Link to comment Share on other sites More sharing options...
Evey Posted December 17, 2002 Share Posted December 17, 2002 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 :( Link to comment Share on other sites More sharing options...
Evey Posted December 17, 2002 Share Posted December 17, 2002 I got it working thanks! :) Link to comment Share on other sites More sharing options...
Evey Posted December 17, 2002 Share Posted December 17, 2002 I got it working thanks! :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.