Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 date problem

Author  Topic 

mr_dayal
Starting Member

37 Posts

Posted - 2008-07-30 : 10:07:33
Hi,
I want to retrieve the date which is 7 days older then the current date.
Suppose today is 30/7/2008 . The value I want is 23/7/2008.


plz help.

Mr Dayal

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-07-30 : 10:09:56
[code]select dateadd(day, -7, getdate())[/code]


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -