开发者

C# equivalent to MySQL Data and Time data types

开发者 https://www.devze.com 2023-02-03 06:10 出处:网络
Now Timestamp and DateTime are equivalent to System.DateTime but what do I convert Date and Time to?Do I just convert them t开发者_C百科o DateTime and know on the date or time is set or is their a spe

Now Timestamp and DateTime are equivalent to System.DateTime but what do I convert Date and Time to? Do I just convert them t开发者_C百科o DateTime and know on the date or time is set or is their a specific datatype for those? I am using NHibernate as my ORM if it has a specific conversion.


You convert them to DateTime. DateTime has Date and TimeOfDay if you need to seperate them out.

0

精彩评论

暂无评论...
验证码 换一张
取 消