Saturday, May 28, 2016

SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.

This error bubbles to the yellow and red screen of death from T-SQL when I attempt to hand in a date set with = DateTime.MinValue; in C# which equates to 1/1/0001 and the way to fix it is to instead hand in a date set with = new DateTime(1753,1,1); which is the beginning of the Gregorian calendar in Sweden and the point where it was here to stay.

No comments:

Post a Comment