Difference between 2 timestamps always a day extra
Posted: Sat Apr 09, 2005 2:37 am
I want to find the number of days in-between two timestamps and date() is always return a day extra.
This should return 0 days but returns 1.
How is this possible ?
Thanks
Code: Select all
echo strtotime("2005-01-04").'<br>';
echo strtotime("2005-01-04").'<br>';
echo date("d",strtotime("2005-01-04")-strtotime("2005-01-04")).'<br>';How is this possible ?
Thanks