php date plus days

87

Add days to date in PHP -

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

echo $date->format('Y-m-d');

Comments

Submit
0 Comments