add 1 day php datetime

28

$start_date = "2015/03/02";  
$date = strtotime($start_date);
$date = strtotime("+7 day", $date);
echo date('Y/m/d', $date);
$date = new DateTime('2000-01-01');
$date->add(new DateInterval('P1D'));

Comments

Submit
0 Comments