title: how to format atom date time
body: <p>I'm getting dates from feed in this format:</p>
  
  <pre><code>2009-11-04T19:55:41Z
  </code></pre>
  
  <p>I'm trying to format it using the <code>date()</code> function in PHP, but I get an error saying:</p>
  
  <blockquote>
    <p>date() expects parameter 2 to be long, object given in /bla/bla.php</p>
  </blockquote>
  
  <p>I tried using <code>preg_replace()</code> to remove the <code>T</code> and the <code>Z</code>, but still can't get it to work.</p>