$foo = '2010-07-15'; $bar = strtotime($foo); $candy = strtotime('-2 days', $bar); echo date('r', $candy);