Answers for "get next day date in php"

PHP
1

tomorrow date php

$tomorrow = date("Y-m-d", strtotime('tomorrow'));
or 
$tomorrow = date("Y-m-d", strtotime("+1 day"));

for DateTime
  
$datetime = new DateTime('tomorrow');
echo $datetime->format('Y-m-d H:i:s');

or

$datetime = new DateTime('2013-01-22');
$datetime->modify('+1 day');
echo $datetime->format('Y-m-d H:i:s');
Posted by: Guest on June-26-2020
1

tomorro date php

$tomorrow = date("Y-m-d", strtotime('tomorrow'));
or 
$tomorrow = date("Y-m-d", strtotime("+1 day"));

for DateTime
  
$datetime = new DateTime('tomorrow');
echo $datetime->format('Y-m-d H:i:s');

or

$datetime = new DateTime('2013-01-22');
$datetime->modify('+1 day');
echo $datetime->format('Y-m-d H:i:s');
Posted by: Guest on June-10-2020
1

php strtotime 1 day ago from

date('Y-m-d', strtotime('+1 day', strtotime($date)))
Posted by: Guest on July-13-2020
0

php code for getting the next day

$tomorrow = date("Y-m-d", strtotime("+1 day"));
Posted by: Guest on May-18-2021
2

get day from date php

// Prints the day
echo date("l") . "<br>";
Posted by: Guest on July-04-2020
0

get next day date in php

echo date("h");
Posted by: Guest on August-21-2021

Browse Popular Code Answers by Language