How to find out what the date was 5 days ago?
- by Lost_in_code
Well, the following returns what date was 5 days ago:
$days_ago = date('Y-m-d', mktime(0, 0, 0, date("m") , date("d") - 5, date("Y")));
But, how do I find what was 5 days ago from any date, not just today?
For example: What was 5 days prior to 2008-12-02?