On Mon, 03 Jan 2005 22:58:49 -0500, Jerry Kita <[EMAIL PROTECTED]> 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

Reply via email to