title: PHP date format, remove time and more
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2167916/convert-one-date-format-into-another-in-php">Convert one date format into another in PHP</a>  </p>
  </blockquote>
  
  
  
  <p>Starting from:</p>
  
  <pre><code>$date = '2012-09-09 03:09:00'
  </code></pre>
  
  <p>I would like to do two things.</p>
  
  <ol>
  <li>Remove the time from the string, so it will become <code>"2012-09-09"</code>.</li>
  <li>Calculate how many years, days, and hours have passed since this date
  using the server current date/time/timezone.</li>
  </ol>
  
  <p>Could anyone help me figure this out?</p>