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 reply:

Your email address will not be published.

*

Site Footer

Sliding Sidebar

Disclaimer

The contents on this blog are not intended as professional advice. The author disclaims any liability, loss, or risk taken by individuals who directly or indirectly act on the information contained on this blog.