set start and end date for last 30 days ending today with php -


I need to create two dates in YYYY-MM-DD format: 2010-06-09

There is such an expiry date for the past 30 days today and today's start is today - 30 days

Can you help to make these two dates in the last two formats YYYY-MM-DD

Thanks guys for the last 30 days

today's expiration date and start Date today - 30 days

real friends Land:

  countercurrent date ( 'Waim-D', Strtotaim (today - "30 days));  

Comments