Default date on column

55 Views Asked by At

I have an entity Im updating that corresponds to a LocalDB table that includes a date column with a default applied and so Im not passing a value for the date, yet I get an error like the following

The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value

I dont recall getting this kind of error (assuming I have a default on the column) when Im using SQL server.

What should I check?

0

There are 0 best solutions below