I\'ve got a date in this format:
2009-01-01
How do I return the same date but 1 year earlier?
Use strtotime() function:
$time = strtotime("-1 year", time()); $date = date("Y-m-d", $time);