title: PHP echo date_format produces expects parameter 1 error
body: <p>I have a standard PHP echo <code>echo $userinfo['ExpDate'];</code> that outputs a date like this 2016-05-13 00:00:00</p>
  
  <p>I altered this echo statement to use date_format: </p>
  
  <pre><code>echo date_format($userinfo['ExpireDate'],"m/d/Y");
  </code></pre>
  
  <p>and I now get this error: 
  Warning: date_format() expects parameter 1 to be DateTimeInterface</p>