Here you go :
[PHP]
$tomorrow = mktime(0, 0, 0, date("m"), date("d")+1, date("y"));
echo "Tomorrow is ".date("m/d/y", $tomorrow);
[/PHP]
Not that it really matters, but I think this is a more elegant solution...
[php]
echo 'Tomorrow is '.date('m/d/y',strtotime('now +1 day'));
[/php]
Thank you bbrock32 and kyleirwin, I need to use iframe in html? Can't use directly? Like JS.
You can use it "directly" in this fashion...
<html> <head> <title>Page Title</title> </head> <body> <h1>Page Header</h1> <p>Yesterday's date is <?php echo date('m/d/y',strtotime('now +1 day')); ?></p> </body> </html>
How would we change the format of the date to show November 11, 2011 or just November 11?
I'm using this script <?php echo date('m/d/y',strtotime('now +1 day')); ?>
Nevermind. I ended up using the script from the link in the OP
<?PHP $now = time(); $tomorrow = $now + 86400; echo date('F jS, Y',$tomorrow);?>
Shows: November 11th, 2011
You can change the format by changing 'F jS, Y' with the format characters from
http://jacwright.com/projects/javascript/date_format/