--Function:Get Date with a datetime
--Author: Benjamin Zhou
--2008-05-22
Declare @Date datetime
Set @Date=getdate()
select DATEADD(day, DATEDIFF(day,0,@date), 0)
--Author: Benjamin Zhou
--2008-05-22
Declare @Date datetime
Set @Date=getdate()
select DATEADD(day, DATEDIFF(day,0,@date), 0)