PHP Date() - Adding a Timestamp
To go one day in the future we simply add one to the day argument of mktime():
Code:<?php $tomorrow = mktime(0,0,0,date("m"),date("d")+1,date("Y")); echo "Tomorrow is ".date("Y/m/d", $tomorrow); ?>
Out put: Tomorrow is 2011/11/16




Reply With Quote
Bookmarks