Answers for "adding days to a datime 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
-1

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