gtjr921
Programmer
- Aug 30, 2006
- 115
How can I subtract one day from getdate() without it returning the time?
If i do select DateAdd(dayofyear,-1,GetDate())
then it goes back exactly 24 hours how can i get it to just go back one date and then I would do a where clause to compare that to another date whose time is all 00:00:00.000
I guess that could be converted somehow too.
Thanks!!
If i do select DateAdd(dayofyear,-1,GetDate())
then it goes back exactly 24 hours how can i get it to just go back one date and then I would do a where clause to compare that to another date whose time is all 00:00:00.000
I guess that could be converted somehow too.
Thanks!!