I have an object that has a DateTime property, and I initialize it with the value of the DateTime.MinValue property
The problem is that passing this value to register in the SQL Server database gives an error:
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM
I understand that the error is because the MinValue property returns a value less than the minimum accepted by SQL Server, but has to make the MinValue value compatible with the database in use (in this case SQL Server) ?
Is there a better way to insert an empty date into the database?