MySQL Dates
I am currently converting a MS SQL to MySQL and are having a bit of trouble with the way dates are stored in the database. I do not know if this is a mysql question or cf question but I thought I would start here.
The is a field called birthday. if someone decides not to fill it in the date in the database is - 0000-00-00 00:00:00. When i do a query on that table I get an error that says the following:
Cannot convert value '0000-00-00 00:00:00' from column 8 to TIMESTAMP
I have tried to change the default value to 0 but it still saves the date the same way. What can i do to stop getting this error.
thanks in advance.
