
Originally Posted by
weif
Yes, MySQL is particular about the format of data being inserted into DATE or DATETIME fields. It expects information to be entered in UTF, YYYY-MM-DD (or YYYY-MM-DD HH:MM:SS), but can accept some other formats.
I do not know what has been edited or where when you converted dates to DD-MM-YYYY format for display, but you will want to convert it back to YYYY-MM-DD format for the insert statement. If a new variable was created for the new date format, then the easiest way to do this would be to use the original variable for the insert statement.
Bookmarks