SqlDateTime.MinValue != DateTime.MinValue, why?

后端 未结 5 2056
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-27 13:59

I wonder, why SqlDateTime.MinValue is not the same as DateTime.MinValue?

5条回答
  •  青春惊慌失措
    2020-11-27 14:29

    Since, in SQL Server the minimum date that can be stored in a datetime field (1753/1/1), is not equal to the MinValue of the DateTime .NET data type (0001/1/1).

提交回复
热议问题