title: Using DateTime::diff() to return days between two dates
body: <p>I am currently using DateTime::diff() to return the days, hours, minutes, and seconds between two dates.</p>
  
  <p>The problem is when the differences is more than 30 days, instead of returning 33 days it returns 1 month and 3 days.</p>
  
  <p>Is there a way to tell it to return days and not month accordingly. </p>
  
  <p>Some code:</p>
  
  <pre><code>$date1      =   new DateTime(date('Y-m-d H:i:s', time()));
  $date2      =   new DateTime($row['start']);
  
  $interval   =   $date1-&gt;diff($date2);
  
  $days       =   $newInfo[$key]['days'] = $interval-&gt;format("%d"); 
  $hours      =   $newInfo[$key]['hours'] = $interval-&gt;format("%h"); 
  $minutes    =   $newInfo[$key]['minutes'] = $interval-&gt;format("%i"); 
  $seconds    =   $newInfo[$key]['seconds'] = $interval-&gt;format("%s"); 
  </code></pre>