Answers for "date_diff add 1 day php"

PHP
2

php get day diff

$now = time(); // or your date as well
$your_date = strtotime("2010-01-31");
$datediff = $now - $your_date;

echo round($datediff / (60 * 60 * 24));
Posted by: Guest on April-22-2020
0

php date modify plus 1 day

<?php
$date = new DateTime('2006-12-12');
$date->modify('+1 day');
echo $date->format('Y-m-d');
?>
Posted by: Guest on December-17-2021

Browse Popular Code Answers by Language