Re: Difference between two dates

From: Date: Tue, 19 Feb 2002 10:04:30 +0000
Subject: Re: Difference between two dates
Groups: php.general 
Request: Send a blank email to php-general+get-85370@lists.php.net to get a copy of this message
Hello, If i executed code then nothing will be displayed... -Uma On Tue, 19 Feb 2002, Andrey Hristov wrote: AH>Try this : AH>$d1=strtotime('d-m-Y',$str); AH>$d2=strtotime('d-m-Y',$str1); AH>var_dump($d2-$d1); AH> AH> AH>Best regards, AH>Andrey Hristov AH> AH>----- Original Message ----- AH>From: "Uma Shankari T." <umashankari@lantana.tenet.res.in> AH>To: <php-general@lists.php.net> AH>Sent: Tuesday, February 19, 2002 10:50 AM AH>Subject: [PHP] Difference between two dates AH> AH> AH>> AH>> AH>> Hello, AH>> AH>> How can i find out the difference between two dates. AH>> AH>> I am having the date like this AH>> AH>> $str="10-01-2001"; AH>> $str1="01-02-2002"; AH>> AH>> I need to find out the difference between the date,month and year. AH>> AH>> If anyone know the solution for this problem plz tell me AH>> AH>> AH>> -Uma AH>> AH>> AH>> -- AH>> PHP General Mailing List (http://www.php.net/) AH>> To unsubscribe, visit: http://www.php.net/unsub.php AH>> AH>> AH> -- Love and you shall be loved by others

« previous php.general (#85370) next »