note 31227 deleted from function.date by vincent
| From: | vincent@php.net | Date: | Fri, 12 Sep 2003 07:31:40 +0000 |
| Subject: | note 31227 deleted from function.date by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56350@lists.php.net to get a copy of this message | ||
Note Submitter: kfso.at.iol.dot.it
----
---------------------------------------------
-- how to increment a date by days..years --
---------------------------------------------
examples:
print "<br>tomorrow ".date("d/m/Y", date("U") + 1*24*60*60 ) ;
print "<br>next week ".date("d/m/Y", date("U") + 7*24*60*60 );
print "<br>next month ".date("d/m/Y", date("U") +
date("t")*24*60*60 );
print "<br>next year ".date("d/m/Y", date("U") +
(365+1+date("L"))*24*60*60 );