<?php $start = new DateTime('2016-04-20 00:37:15'); $end = clone $start; $end = $end->modify('+7 days'); $diff = $end->diff($start); echo $diff->format('%d days') . PHP_EOL; var_dump($start, $end, $diff);
You have javascript disabled. You will not be able to edit any code.