I have a MySQL query I’m running from C#. I use the MySqlDataAdapter to fill a DataTable. However I am getting the following exception:
MySql.Data.Types.MySqlConversionException: Unable to convert MySQL date/time value to System.DateTime
I can’t really modify the query (it’s loaded from an external source). And I’m hoping I don’t have to manually fill the data table. Anyone had this before?
I should also add I have tried adding allow zero datetime=no to the connection string with no success.
I think you made a mistake with your addition to the connection string! It should be: