A type for Date only in C# - why is there no Date type?

后端 未结 13 1894
暗喜
暗喜 2020-11-28 10:23

In our C# project we have the need for representing a date without a time. I know of the existence of the DateTime, however, it incorporates a time of day as well. I

13条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 10:45

    Allow me to speculate: Maybe it is because until SQL Server 2008 there was no Date datatype in SQL so it would be hard so store it in SQL server?? And it is after all a Microsoft Product?

提交回复
热议问题