.Net - Error - SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM
I am creating an object in C#, populating it with some data and then trying to save it into SQL Server table:
User someUser = new User() {
UserName = "TestUser",
CreateDate = DateTime.MinValue
};
I am getting the following error from MS SQL Server:
> Error - SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM
Please help! Thanks!