I have a table having some fields
and there is one field Date
i am using LINQ when i tried to insert rows in database it shows following error
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.
and insertion code is
Notification noti = new Notification();
noti.Date = Convert.ToDateTime(txtdate.Text.Trim()).ToString("yyyy/MM/dd");
db.SubmitChanges();
earlier it works well but suddenly i got mentioned error.