Page 1 of 1

Days between two dates

Posted: Thu Jul 01, 2004 12:40 am
by kevin7
how can i calculate the days between two dates?

tq

just days

Posted: Thu Jul 01, 2004 1:28 am
by djot
-

Hi,

just calculating the days with timestamps (time() http://www.php.net/manual/en/function.time.php) should be easy!?

($timestamp2 - $timestamp1) / (60*60*24) = amount of days.


djot

-