View Single Post
Old 04-23-2009, 07:28 PM   #4 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

When I do this, I get a positive number of 10.


$startDate = "20 September 2000";
$endDate = "10 September 2000";

$test = abs(ceil((strtotime($endDate) - strtotime($startDate)) / 86400));


echo $test;
allworknoplay is offline  
Reply With Quote