Re: Re: Calculate No Of Days

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

 



On Mon, 03 Jan 2005 22:58:49 -0500, Jerry Kita <jskita@xxxxxxxxxxxxx> wrote:
> Khuram Noman wrote:
> > Hi
> >
> > Is there any function avialable in PHP to calculate
> > the no of days by passing 2 dates like 1 argument is
> > 1/1/2005 and the second one is 1/2/2005 then it
> > returns the no of days or how can i do that if there
> > is no builtin function .
> >
> > Regards
> > Khuram Noman
> >

Maybe you can try the pear Date package - it has some handy function
that does exactly what you're asking for:

http://pear.php.net/package/Date/docs/1.4.2/apidoc/Date-1.4.2/Date_Calc.html#methoddateDiff

-- 
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