I am using (new Date()).zeroTime() to get the current date, how can I get the date 7 days back. for example, if today is 24th May 2012 how can I get 17th May 2012
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In C#, you can use
DateTime.AddDaysand use-7as your parameter.Read more here
In JavaScript it’s: