How to get the datetime and timezone from XML DataSet?
<p>I have an XSD, an XML and I read these two in a dataset</p>

<p>XSD:</p>

<pre><code>&lt;xs:schema id="dataset" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" ... &gt;
  ...
    &lt;xs:element name="DEEDDATE" type="xs:dateTime" ... /&gt;
  ...
</code></pre>

<p>XML:</p>

<pre><code>....
  &lt;DEEDDATE&gt;2014-03-07T00:00:00+02:00&lt;/DEEDDATE&gt;
....
</code></pre>

<p>VB.NET code:</p>

<pre><code>xml.ReadXmlSchema(schemafname)
xml.ReadXml(_filename)
</code></pre>

<p>When I check out the value, I see that it is read as DateTime instead of DateTimeOffset, but still it is converted to my local time, which is not even the same time as the one in the file.</p>

<p>I understand that there is no DateTimeOffset in the xs namespace schema, but ReadXML obviously also reads the timezone, it calculates my localtime and then saves that time as a datetime and discards the timezone.</p>

<p>What can I do to also get the timezone?</p>