luvmy2kids
MIS
I have the below formula:
SELECT DATEADD(year, -1, getdate()) - which returns:
2008-07-21 12:03:32.733
--I need it to return the time as 00:00:00.00
Also in my report what I need to accomplish is a date range:
checkdate between DATEADD(year, -1, getdate()) and 30 days(the previou 30 days). In other words:
checkdate between '6-21-2008' and '7-21-2008'
Any help on this would be greatly appreciated!!
Thanks a million.....
SELECT DATEADD(year, -1, getdate()) - which returns:
2008-07-21 12:03:32.733
--I need it to return the time as 00:00:00.00
Also in my report what I need to accomplish is a date range:
checkdate between DATEADD(year, -1, getdate()) and 30 days(the previou 30 days). In other words:
checkdate between '6-21-2008' and '7-21-2008'
Any help on this would be greatly appreciated!!
Thanks a million.....