The Job
model class has a column:
public DateTime JobDate { get; set; }
When I am trying to add a new Job
, the input of JobDate
is from
<input type="dateTime" name="JobDate" />
I get this error:
SqlException: The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value
How can I fix it?