title: JSON Array to PHP DateTime
body: <p>How do I get PHP Date Time from a <code>JSON</code>?</p>
  
  <pre><code>$params = array();
   $content = json_decode($request-&gt;getContent(), true);
   if(empty($content))
  {
     throw $this-&gt;createNotFoundException('JSON not send!')
  }
  </code></pre>
  
  <p><code>$content['date']</code> need to be smomething like <code>$date = new DateTime();</code></p>
  
  <p>JSON looks like :</p>
  
  <pre><code>{
      "date" : "2017-02-15 15:20:14"
  }
  </code></pre>