Re: Date(), adjusted for one year
| From: | Robert Cummings | Date: | Wed, 18 Sep 2002 17:49:37 +0000 |
| Subject: | Re: Date(), adjusted for one year | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116767@lists.php.net to get a copy of this message | ||
"Support @ Fourthrealm.com" wrote:
>
> Hi guys,
>
> What is the easiest way to get the date of one year from today?
> Accommodating for leap years is not essential (but would be a nice bonus).
Without leap year adjustment...
date( "your format string here", time() + 60 * 60 * 24 * 365 );
HTH,
Rob.
--
.-----------------.
| Robert Cummings |
:-----------------`----------------------------.
| Webdeployer - Chief PHP and Java Programmer |
:----------------------------------------------:
| Mail : mailto:robert.cummings@webmotion.com |
| Phone : (613) 731-4046 x.109 |
:----------------------------------------------:
| Website : http://www.webmotion.com |
| Fax : (613) 260-9545 |
`----------------------------------------------'