November 4, 2009 at 9:44 pm
hi..
I need three day back date from prasent date.
example:today date : getdate()
3 days beforedate=02-11-2009
is there any function for this.
Thanks
Dastagiri.D
November 4, 2009 at 10:15 pm
Yes there is... please see DATEADD in Books Online. Yeah... you could just subtract 3 from a DATETIME datatype, but that won't work on some of the new DATE datatypes from what I understand.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 4, 2009 at 10:18 pm
November 4, 2009 at 10:21 pm
Looks like Jeff was a little faster than I..
CEWII
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply