微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在SQL Server中的c#和DateTime之间的DateTime有什么区别吗?

sql Server中的c#和DateTime之间的DateTime有什么区别吗?

解决方法

精度和范围(所以一切都很重要; -p)

从MSDN:

.NET System.DateTime

The DateTime value type represents dates and times with values ranging from 12:00:00 midnight,January 1,0001 Anno Domini (Common Era) through 11:59:59 P.M.,December 31,9999 A.D. (C.E.)

Time values are measured in 100-nanosecond units called ticks,and a particular date is the number of ticks since 12:00 midnight,0001 A.D. (C.E.) in the GregorianCalendar calenda

Transact SQL datetime

Date Range: January 1,1753,through December 31,9999

Accuracy: Rounded to increments of .000,.003,or .007 seconds

原文地址:https://www.jb51.cc/mssql/82022.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐