Im getting a strange error when trying to add a new item to a table using LINQ
error : SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.
Code:
dbc.TblEvent newEvent = new dbc.TblEvent();
newEvent.Subject = "Registered";
newEvent.PersonID = PersonId;
newEvent.EventDate = DateTime.Now;
newEvent.EventTypeID = 23;
newEvent.EventStatusID = 10;
context.TblEvents.InsertOnSubmit(newEvent);
As you can see I'm not doing anything exciting. What can I do to sort this?