Re: Adding days to a date
| From: | Onslaught | Date: | Tue, 12 Aug 2003 19:47:33 +0000 |
| Subject: | Re: Adding days to a date | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159319@lists.php.net to get a copy of this message | ||
Yes, just check out mktime in the PHP manual.
----- Original Message -----
From: "Donpro" <donpro@lclnav.com>
To: "php list" <php-general@lists.php.net>
Sent: Tuesday, August 12, 2003 2:37 PM
Subject: [PHP] Adding days to a date
> I have a piece of code like so:
>
> $today =- getdate();
>
> I am looking for a function that will add a variable number of days and
> return a valid date, i.e., the array elements for "mday", "mon" and
> "year"
> are reset as needed. Is this possible?
>
> Thanks,
> Don
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.507 / Virus Database: 304 - Release Date: 8/4/2003
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>