首页 > 代码库 > DATEADD(Day, DATEDIFF(Day,0,ShippingTime), 0)

DATEADD(Day, DATEDIFF(Day,0,ShippingTime), 0)

select DATEADD(Day, DATEDIFF(Day,0,GETDATE()), 0),DATEDIFF(Day,0,GETDATE()),GETDATE()

结果:

(无列名) (无列名) (无列名)
2015-01-30 00:00:00.000 42032 2015-01-30 20:04:57.050

 

DATEADD(Day, DATEDIFF(Day,0,ShippingTime), 0)