anu
06-04-2007, 11:51 AM
Hai,
I am facing a problem while getting the difference between two dates in PHP. i used the following code
$diff=date("Y-m-d",strtotime('01-01-2007') - strtotime('01-01-2008')) but it is returning wrong date. i tried with most of the functions provided with php but still i can't. also How it will possible if the date is having time also. please send us the code if anybody already knows.
regards
anu
I am facing a problem while getting the difference between two dates in PHP. i used the following code
$diff=date("Y-m-d",strtotime('01-01-2007') - strtotime('01-01-2008')) but it is returning wrong date. i tried with most of the functions provided with php but still i can't. also How it will possible if the date is having time also. please send us the code if anybody already knows.
regards
anu