title: How do I write a date format for 2011-08-16T23:20:30.000Z in PHP?
body: <p>I have dates coming over in this format:
  2011-08-16T23:20:30.000Z</p>
  
  <p>I am trying to do something like this:</p>
  
  <p><code>$dt = DateTime::createFromFormat('Y-m-d\TH:i:s.u',$issue-&gt;updated);</code></p>
  
  <p>I have two problems:</p>
  
  <ol>
  <li>I know Z is for UTC, but the timezone placeholders <a href="http://de3.php.net/manual/en/datetime.createfromformat.php" rel="nofollow">in the PHP docs</a> don't match Z</li>
  <li>How do I escape just the T but not the H? The escape comment in the <a href="http://de3.php.net/manual/en/function.date.php" rel="nofollow">PHP doc for date</a> makes it seem like a slash will escape all characters until a space.</li>
  </ol>