Answers for "add to date php"

PHP
0

php add days to date

$start_date = "2015/03/02";  
$date = strtotime($start_date);
$date = strtotime("+7 day", $date);
echo date('Y/m/d', $date);
Posted by: Guest on July-29-2021
2

Add days to date in PHP

$date = new DateTime('2020-11-24');
$date->add(new DateInterval("P9D"));

echo $date->format('Y-m-d');
Posted by: Guest on January-14-2021
0

PHP Date add days

$date = date('Y-m-d', strtotime("+1 day"));
Posted by: Guest on June-30-2021

Browse Popular Code Answers by Language