Click here to Skip to main content
15,908,626 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to get old or back date defore 7-8 days in asp.net.
or
if the answer in sql server than that answer also send to me ....
Posted
Comments
Richard MacCutchan 2-Dec-11 12:39pm    
DateTime - 7!

1 solution

In C# you can use for example AddDays Method[^] or in SQL Server DATEADD[^] or more simply substract desired amount of days from GETDATE() e.g.
SQL
SELECT GETDATE() - 8
 
Share this answer
 
Comments
RaviRanjanKr 2-Dec-11 15:05pm    
My 5+
Wendelius 2-Dec-11 15:11pm    
Thanks :)
Monjurul Habib 2-Dec-11 23:49pm    
my 5!.
Wendelius 3-Dec-11 2:01am    
Thank you :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900