when inserting into my table with a nullable datetime column, inserting DateTime.MinDate
raises the error:
"The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value."
Yet when i do MaxDate
it works fine?
I actually want to insert this value as null but in PropertyInfo.SetValue()
passing null value is just automatically setting as MinDate
, any suggestions?