Answers for "add days in current date time php"

PHP
0

add 7 days to date php

$date = "Mar 03, 2011";
$date = strtotime($date);
$date = strtotime("+7 day", $date);
echo date('M d, Y', $date);
Posted by: Guest on April-20-2020
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

Code answers related to "add days in current date time php"

Browse Popular Code Answers by Language