title: PHP - convert date from non standard format
body: <p>I am parsing a feed which returns the date in form:</p>
  
  <pre><code>20150129180000
  </code></pre>
  
  <p>which should be [yyyy][mm][dd][hours][minutes][seconds]</p>
  
  <p>I tried formatting this with the php date() function:</p>
  
  <pre><code>date('Y-m-d H:i:s', $event['start-dt'])
  </code></pre>
  
  <p>and got this:</p>
  
  <pre><code>640502-03-05 12:33:20
  </code></pre>
  
  <p>which is obviously not right. Is there a smooth way of converting this, or do I simply need to splice the string manually?</p>