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 PROTECTED]
DM> Hi there;
DM> How could I get the diference between two dates
DM> for exemplo:
DM> 07-05-2001 and 06-05-2001 I wil get this date from my sql.
DM> How could I do that??
DM> Thank you very much.
DM> Danilo Meles
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]