如何仅从SQL Server DateTime数据类型返回日期

我只是一个虾纸丫 提交于 2020-08-09 21:41:11

问题:

SELECT GETDATE()

Returns: 2008-09-22 15:24:13.790 回报: 2008-09-22 15:24:13.790

I want that date part without the time part: 2008-09-22 00:00:00.000 我希望该日期部分没有时间部分: 2008-09-22 00:00:00.000

How can I get that? 我该怎么办?


解决方案:

参考一: https://stackoom.com/question/TPJ/如何仅从SQL-Server-DateTime数据类型返回日期
参考二: https://oldbug.net/q/TPJ/How-to-return-only-the-Date-from-a-SQL-Server-DateTime-datatype
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!