Amir Mirkamali

امیر میرکمالی

C# DateTime.MinValue is not the same as SqlDateTime.MinValue

DateTime myDate = DateTime.MinValue; //=> 1/1/0001
SqlDateTime mySqlDate = SqlDateTime.MinValue; //=> 1/1/1753
//Note that SQL Server's smalldatetime min value is 1/1/1900
Comments are closed