Unable to convert MySQL date/time value to System.DateTime
Hi, i have a table in mysql database with with a column for date. It was working when i initially set it up. Using custom format in my form in visual studio. But i deleted all the columns in my table and then reordered them but the same columns. After then i start getting the error: {"Unable to convert MySQL date/time value to System.DateTime"}. I have set convert to zero time=true, yet it is still showing i have also change the default column value to NULL yet it is still showing. Please help me. Thanks
Chetan RanpariyaPosted Jan 11, 2017, 9:47 AM
Afzaal Ahmad ZeeshanPosted Jan 11, 2017, 7:26 AM
Ikechukwu DanielPosted Jan 11, 2017, 6:08 AM
Afzaal Ahmad ZeeshanPosted Jan 11, 2017, 4:34 AM
You mentioned,
One more thing, just similar to NULL errors, also make sure that you are not setting your column values to, '0000-00-00 00:00:00' -- default values. Consider using a real date time value, such as today and then see if that works correctly or not.