Consider the following test case:
$start = new DateTime(\"2011-02-25\"); $end = new DateTime(\"2011-03-25\"); $interval = $end->diff($start); echo \"INTERV
you need to use format code 'a'. d is the number of days in the diff, not the net number of days. in the dateinterval object, days is the corresponding field. in your example, you will see m = 1
'a'
d
days
m = 1