Re: Re: Calculate No Of Days

From: Date: Tue, 04 Jan 2005 19:31:45 +0000
Subject: Re: Re: Calculate No Of Days
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-205621@lists.php.net to get a copy of this message
On Mon, 03 Jan 2005 22:58:49 -0500, Jerry Kita <jskita@attglobal.net> 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

« previous php.general (#205621) next »