|
Question : How do you change the default date in a mysql database from US format yyyy-mm-dd to UK format dd-mm-yyyy
|
|
Hi Experts I have a mysql database set up on my server. It is set yo the US format yyyy-mm-dd. I want it to be changed to UK format dd-mm-yyy. The reason for this is when we do inserts into the database we need to do it the US way in our text fields
I do not want to change my code but want to make the change at the database level so it accepts UK FORMATTING dd-mm-yyy.
My question is how do I go about doing this and what is the sql query or update i need to run to chnage this default setting
|
|
Answer : How do you change the default date in a mysql database from US format yyyy-mm-dd to UK format dd-mm-yyyy
|
|
I can't offer any comment on Dreamweaver or adobe developer toolbox - I know nothing about either. If you are asking why MySQL only accepts dates in yyyy-mm-dd format then there is no answer other than 'because it was designed that way'. But clearly it means that you have to convert from a user-acceptable input format into the mySQL format when you are updating the database.
|
|
|