Re: [PHP-WIN] diference between date

2001-06-21 Thread Michel Laine
Danilo Meles wrote: > Hi there; > > How could I get the diference between two dates > for exemplo: > 07-05-2001 and 06-05-2001 I wil get this date from my sql. > How could I do that?? > Thank you very much. > > Danilo Meles > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe,

Re: [PHP-WIN] diference between date

2001-06-21 Thread Ruslan Ohitin
Hello Danilo, Try to use this: $d1 = strtotime("07-05-2001"); // $d1 and $d2 are unix timestamps. $d2 = strtotime("06-05-2001"); $diff_sec = $d2 - $d1; //difference in seconds. $diff_days = $diff_sec / (60 * 60 * 24); // difference in days -- Best regards, Ruslan Ohitin mailto:[EMAIL

[PHP-WIN] diference between date

2001-06-20 Thread Danilo Meles
Hi there; How could I get the diference between two dates for exemplo: 07-05-2001 and 06-05-2001 I wil get this date from my sql. How could I do that?? Thank you very much. Danilo Meles -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona