Answers for "how to add date in 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
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