PHP 5.5.1.14:
$d1 = new DateTime("2014-04-01 00:00");
$d2 = new DateTime("2014-07-01 00:00");
$d3 = $d2->diff($d1);
echo $d3->m . " months, " . $d3->d . " days";
returns
2 months, 30 days
Is there a way to reliably get the intuitive result 3 months? (Is this a bug or not?) BTW, when using May1st and Aug 1st, it gives the expected result of 3 months...