title: PHP get date from string
body: <p>I'm from mail source I get dates like: <strong>Mon, 22 Jul 2013 09:08:50 +0200</strong>
  I must get from this dates date: <code>2013-07-22</code>.
  I try this </p>
  
  <pre><code>$date = "Mon, 22 Jul 2013 09:08:50 +0200";
  date("Y-m-d", strtotime($date))
  </code></pre>
  
  <p>What I do wrong ?</p>