Re: is this good for date calculation
| From: | olinux | Date: | Thu, 15 May 2003 08:46:01 +0000 |
| Subject: | Re: is this good for date calculation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147671@lists.php.net to get a copy of this message | ||
Good article on working with dates
http://www.phpbuilder.com/columns/akent20000610.php3
Also keep in mind that your DB can also handle this,
if you're using mysql, check out 6.3.4 Date and Time
Functions
http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#Date_and_time_functions
olinux
--- qt <web_tur@yahoo.com> wrote:
> Dear Sirs,
>
> Is this good and secure way to add days to a date?
> Any different idea?
>
> echo date ("Y-m-d", strtotime("2003-05-01 +3
> days"));
>
> Best Regards
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com