Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
https://stackoverflow.com/questions/58938830/how-to-set-c-sharp-datatable-locale-to-be-utc by dbc_MinLength
Environment version: .NET 9.0.0 (9.0.0)

<NewDataSet>
  <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="Test" msdata:Locale="en-US">
      <xs:complexType>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element name="Test" msdata:Locale="en-US">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="utcDT" msdata:DateTimeMode="Utc" type="xs:dateTime" minOccurs="0" />
                <xs:element name="Symbol" type="xs:string" minOccurs="0" />
                <xs:element name="Close" type="xs:double" minOccurs="0" />
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:choice>
      </xs:complexType>
    </xs:element>
  </xs:schema>
  <Test>
    <utcDT>2019-11-19T21:08:00Z</utcDT>
    <Symbol>Widget</Symbol>
    <Close>31.25</Close>
  </Test>
</NewDataSet>
Cached Result
Last Run: 10:10:58 am
Compile: 0.25s
Execute: 0.58s
Memory: 18.25Mb
CPU: 0.83s