04-23-2009, 07:28 PM
|
#4 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
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;
|
|
|
|