tomorrow date in php – PHP, Get tomorrows date from date

tomorrow date in php, Simple method how to get the date of tomorrow, yesterday, etc. Getting tomorrow’s date using the strtotime function.

tomorrow date in php

Get date of tomorrow, day after, yesterday, day before – PHP get the date of yesterday, today and tomorrow Example.

tomorrow date php

index.php

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

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

or

$results = new DateTime('2025-01-22');
$results->modify('+1 day');
echo $results->format('Y-m-d H:i:s');

Don’t Miss : how to set date format in php?

Also Read This 👉   Data Export to Excel with PHP and MySQL

How to get yesterday and tomorrow date in php?

getting yesterday using php

<?php
echo "Yesterday Date : ";
echo date("Y-m-d",strtotime("yesterday"));
?>

getting tomorrow using php

<?php
echo "Tomorrow date :";
echo date("Y-m-d",strtotime("tomorrow"));
?>

tomorro date php

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

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

//or

$results = new DateTime('2025-01-22');
$results->modify('+1 day');
echo $results->format('Y-m-d H:i:s');

php tomorrow

$results = new DateTime('tomorrow');
echo $results->format('Y-m-d');

Get tomorrow’s date using PHP.

$results = strtotime("+1 day");

$results = date("Y-m-d", $results);

echo $results;

$results = strtotime("tomorrow");
echo date("Y-m-d", $results);

Getting tomorrow’s date using PHP’s DateTime object.

Free Live Chat for Any Issue

$created_at = new DateTime();
 
$interval = new DateInterval('P1D');
 
$created_at->add($interval);
 
echo $created_at->format("Y-m-d");

I hope you get an idea about tomorrow date in php.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.