I have 2 dates, both in timestamp format. I need to be able to find out exactly how many days are between them.
For instance:
Date 1: 20030128173207
Date 2: 20030203161007
How can I find out exactly how many days are between those to numbers.
Maybe something here might help. Search that page for, e.g., the phrase "days between".
$date1=20030128173207; $date2=20030203161007;
echo "There are ".floor((date("U",$date2) - date("U",$date1)) / 86400)." days between the two dates specified.";