Jump to content

[SOLVED] Date formating help


bajangerry

Recommended Posts

Hi Guys, I am back for more!  :)

 

I want to import data from a CSV file that includes a date field formated dd/mm/yyyy and I am having a problem with the MySQL table as its date field is formated yyyy-mm-dd. How can I use PHP to convert this date to match the MySQL requirements during the import from CSV? Or can I somehow convert the table to match the CSV format?

 

CSV example data is:

 

"15/05/2009","2345234","07:45"

Link to comment
https://forums.phpfreaks.com/topic/170437-solved-date-formating-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.