日期而不是日期时间? [英] Date instead of DateTime?
本文介绍了日期而不是日期时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
据我所知 日期 和 DateTime 具有相同的功能.有什么理由让我想使用一个而不是另一个吗?
From what I can tell Date and DateTime have the same functionality. Is there a reason why I would want to use one instead of the other?
推荐答案
在 VB.NET 中 Date
是 System.DateTime
的别名,所以是的,它们是同样的事情.您可以在 MSDN 上的此图表中查看所有别名.
In VB.NET Date
is an alias to System.DateTime
, so yes, they're the same thing. You can see all the aliases in this chart on MSDN.
这篇关于日期而不是日期时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文