MS SQL Date Only Without Time

后端 未结 12 1587
有刺的猬
有刺的猬 2020-12-13 02:02

Question

Hello All,

I\'ve had some confusion for quite some time with essentially flooring a DateTime SQL type using T-SQL. Essentially, I want to take a

12条回答
  •  难免孤独
    2020-12-13 02:29

    If you're using SQL Server 2008 it has this built in now, see this in books online

    CAST(GETDATE() AS date)

提交回复
热议问题