0000-00-00 00:00:00
i have this date in mysql as default date in undefined case
how i can get them in c# and re insert them without changes in MysqlDatabase.
if i get them in c#. i got error that Unable to convert MySQL date/time value to System.DateTime
how i can get this in c# and insert them without any changes in date
Use
Nullabletypes and theasoperator to represent your datetime values in C#. This is the easiest mechanism to deal with database types which map to value types and potentially have no value. For example:If the value is valid, it will be interpreted as
DateTime, otherwise it will be interpreted as null.You should also be able to send values of the type
DateTime?back to MySQL without issue.