【问题标题】:SqlDateTime.MinValue is 1753. Why? [duplicate]SqlDateTime.MinValue 是 1753。为什么? [复制]
【发布时间】:2011-11-18 12:38:54
【问题描述】:

可能重复:
What is the significance of 1/1/1753 in SQL Server?

在 SqlDateTime.MinValue 中为 1753

为什么最后两位数是 53?为什么不四舍五入到 1700?

有人知道这背后的原因吗? :)

编辑:我更正了这个问题。 :)

【问题讨论】:

  • It is not 1753 -- 你从哪里得到这个值?
  • 我认为它的 sql min datetime 值.. yes Indeed
  • @Jon,我相信这是 SQL Server 中 datetime 类型的最短日期。不要与您提到的 .NET 框架中的 DateTime 类型混淆。
  • @ChristopheGeers:我阅读(并赞成)纪尧姆链接到的答案,所以现在我知道了。但这个问题完全是误导性的。

标签: c# sql-server


【解决方案1】:

DateTime.MinValue01/01/0001 00:00:00

至于为什么SqlDateTime.MinValue 在 1753 年,答案在这里:SqlDateTime.MinValue != DateTime.MinValue, why? 和这里:What is the significance of 1/1/1753 in SQL Server?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-05-23
    • 2012-01-10
    • 2015-01-05
    • 1970-01-01
    • 1970-01-01
    • 2012-03-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多