date
Posted: Wed Aug 15, 2007 7:56 am
Hi
I want to calcaulate how many, days is between 2010-1-10 and 1999-11-1
Ho can i do that?
I want to calcaulate how many, days is between 2010-1-10 and 1999-11-1
Ho can i do that?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$from = strtotime('1999-11-1');
$to = strtotime('2010-1-10');
$seconds = $to - $from;
$days = $seconds / 60*60*24;
echo $days;