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." <[EMAIL PROTECTED]>
AH>To: <[EMAIL PROTECTED]>
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php