title: String was not recognized as a valid DateTime (valid UTC format)
body: <p>I'm trying to deserialize an XML object with the following node:</p>
  
  <pre><code>&lt;startTime&gt;2012-03-19T11:31:03.000Z&lt;/startTime&gt;
  &lt;endTime&gt;2012-03-19T11:31:03.000Z&lt;/endTime&gt;
  </code></pre>
  
  <p>Those are the properties on the class which I use to deserialize the XML into:</p>
  
  <pre><code>[System.Xml.Serialization.XmlElementAttribute(DataType = "date", ElementName = "startTime")]
  public DateTime StartTime { get; set; }
  
  [System.Xml.Serialization.XmlElementAttribute(DataType = "date", ElementName = "endTime")]
  public DateTime EndTime { get; set; }
  </code></pre>
  
  <p>Finally, this is the code I use to deserialize the XML:</p>
  
  <pre><code>Stream resultStream = await response.Content.ReadAsStreamAsync();
  var serializer = new XmlSerializer(typeof(T));
  return serializer.Deserialize(resultStream) as T;
  </code></pre>
  
  <p>However, the code will throw an Exception, telling me that the string was not recognized as a valid DateTime object - with a base exception saying that the XML file has errors at (1,1926) which points directly to the two timestamps.</p>
  
  <p>All I can seem to find regarding this error message is caused by incorrect usage of formats (i.e. wrong special characters used in the date string). However, in my case, the format seems to comply 100% with the MSDN description.</p>
  
  <p>Can anybody help me to point out the mistake?</p>