Possible Duplicate:
How to find out what the date was 5 days ago?
I’m trying to work out the date 7 days ago from today in this format: yyyy-mm-dd.
7 is an arbitrary number.
Thanks
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.
First calculate the timestamp for x days ago and than create a date with php date() function.
Hope it helps.