I wish to change the date from the default "US Format MM/DD/YYYY" to the "UK Format DD/MM/YYYY".
Is there an easy solution?
BR
Toby
I wish to change the date from the default "US Format MM/DD/YYYY" to the "UK Format DD/MM/YYYY".
Is there an easy solution?
BR
Toby
in your override copy of english.php, modify this section:
Code:@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');
Neville
An assumption is what you arrive at when you get tired of thinking...
Hi
I made the following changes to my english.php:
@setlocale(LC_TIME, 'en_US.ISO_8859-1');
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');
Is this everything?
When I go to the create account page on my site - it still says for "Date of Birth" the system requires the MM/DD/YYYY Format..
I hope you can help?
Kind Regards
Toby
same file:
Code:// text for date of birth example define('DOB_FORMAT_STRING', 'mm/dd/yyyy');
Neville
An assumption is what you arrive at when you get tired of thinking...
Im having the same trouble...maybe u can help?
My examples show that it should be: 21/05/1970, but when user inputs that it comes up Is your birth date correct? Our system requires the date in this format: DD/MM/YYYY (eg 21/05/1970)
I have done this in the php as u indicated but it still only works when usa format is inputed.
Could this be from me having overrides done wrong?
I have the english php in the languages folder and the same changes on another copy of the english php in my languages/custom.
Thanks for lookin!
I am having the same problem. I have changed all the code about and also the error messages but it still says UK is wrong when i try to enter it. Can any one give me any advise ?
No i tried its please try and sign up ? i editted so that the error messages and the examples are correct but it won't accepted dd/mm/yyyy
http://crazy-hosting.co.uk/########/inde...create_account
I'm having a little trouble changing the date format to dd/mm/yyyy. I managed to get it all changed and it works but in the create account and my account information the example still says 05/21/1970. But it is working in the correct format if you enter it was 05/21/1970 it returns an error saying it should be in the format 05/21/1970.
can anyone help me change the example text please?
Bookmarks