My excel sheet has the following format : dd/mm/YYYY
ex: 24/10/2010 (european format)
and my mysql needs: YYYY-mm-dd (US format)
How can I format the date in Excel to have this US format ? I tried with cell format, but I don't have the desired format
Regards
MySQL uses yyyy-mm-dd format for storing a date value. This format is fixed and it is not possible to change it. For example, you may prefer to use mm-dd-yyyy format but you can't.
Change the curdate() (current date) format in MySQL The current date format is 'YYYY-mm-dd'. To change current date format, you can use date_format().
The default way to store a date in a MySQL database is by using DATE. The proper format of a DATE is: YYYY-MM-DD.
Here's how you can find this Number format in Excel:
Hope that helps!
For the hours, minutes and second
go in the custom category and enter this :
yyyy-mm-dd hh:mm:ss
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With