title: How to calculate the difference of datetime field and now in PHP?
body: <p>I have a datetime field in my database that contains the following information:</p>
  
  <pre><code>2012-05-03 17:34:01
  </code></pre>
  
  <p>I want to check the difference between the datetime field and now:</p>
  
  <pre><code>$now = date("Y-m-d H:i:s");
  </code></pre>
  
  <p>I am attempting to work out how many days have passed between now and the time written to the database field.</p>
  
  <p>How can I achieve this?</p>