Alvin Poh

How To Import Excel Dates Into MySQL Using PHPMyAdmin

I tried importing a CSV into PHPMyAdmin, and everything got imported successfully except the date. The date used in Excel is different from MySQL, and number formatting won’t work in this case.

The only solution that I found was to create a new column, and apply this formula to it (assuming column A has dates such as 01/31/2014 in it):

=TEXT(A1,”YYYY-MM-DD”)

This will then allow you to import CSVs with dates into MySQL without any problems.

Similar Posts:

Leave a Comment

Your email address will not be published. Required fields are marked *