Difference between dates

Calculate the time period (ie. whole days) between two dates

Ref WebmasterWorld PHP forum: http://www.webmasterworld.com/php/3917947.htm

days between 2009-01-01 and 2009-04-11 = 99.958333333333328596381761599332094192504882812500000000000000

days between 2009-01-01 and 2009-04-11 = 99.958333333333328596381761599332094192504882812500000000000000

The error results because of the BST change on 29 March. Calc dates relative to GMT/UTC instead.

[Home]