title: How to display a date as iso 8601 format with PHP
body: <p>I'm trying to display a datetime from my MySQL database as an iso 8601 formated string with PHP but it's coming out wrong.</p>
  
  <p>17 Oct 2008 is coming out as: 1969-12-31T18:33:28-06:00 which is clearly not correct (the year should be 2008 not 1969)</p>
  
  <p>This is the code I'm using:</p>
  
  <pre><code>&lt;?= date("c", $post[3]) ?&gt;
  </code></pre>
  
  <p><code>$post[3] is the datetime (CURRENT_TIMESTAMP)</code> from my MySQL database.</p>
  
  <p>Any ideas what's going wrong?</p>