I need to generate two dates in the format YYYY-MM-DD example: 2010-06-09
The end date should be today and start date should be today – 30 days.
How can I generate these 2 dates in the above format?
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.
The
strtotimeis real friend: