Answers for "adding days to date in 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
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