On Tue, Sep 1, 2009 at 1:27 PM, tedd<tedd.sperl...@gmail.com> wrote:
> First get the date to seconds, like so:
>
> $today_date = '8/26/2009';
>
> $next_date = strtotime($today_date) + (86400 * 30);
>

No. Due to Daylight Saving Time, many time zones have two days each
year when the number of seconds in a day is not 86400.

> OR
>
> $next_date  = strtotime('+30 days', strtotime($today_date));
>
> Then take the seconds back to a date, like so:
>
> $the_date = date('m/d/Y', $next_date);

Yes.

Andrew

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to