Answers for "php get tomorrows date"

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

php tomorrow

$tomorrow = new DateTime('tomorrow');
echo $tomorrow->format('Y-m-d');
Posted by: Guest on December-21-2020

Browse Popular Code Answers by Language