Re: Computing and calculating dates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In case you're doing so only for database update/check, then you can use
mysql's built-in date_add function.
In case you really want it in PHP, then here's a link simultating:
http://news.hping.org/comp.lang.php.archive/10638.html



--
itoctopus - http://www.itoctopus.com
"Travis Doherty" <travis@xxxxxxxxxxxxx> wrote in message
news:46054E49.4060200@xxxxxxxxxxxxxxxx
> Otto Wyss wrote:
>
> > This probably has been asked several times yet I can't find a
> > satisfying solution. What's the simplest way to compute dates like
> >
> >   local_formated_date + 7; // days
> >   local_formated_date > local_formated_first_day_next_month;
> >   local_formated_date > (current_date + 14)
> >
> > etc. Which functions are best suited for such calculations?
> >
> > O. Wyss
> >
> www.php.net/strtotime is probably a good start.
>
> Travis Doherty

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux