This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IX > IXMLReader Interface > IXMLReader.ReadDate Method (ArcObjects .NET 10.5 SDK) |
Reads the current element value as a date.
[Visual Basic .NET]
Public Function ReadDate ( _
) As DateTime
[C#]
public DateTime ReadDate (
);
[C++]
HRESULT ReadDate(
DATE* Value
);
[C++]
Parameters Value [out, retval] Value is a parameter of type DATE
<?xml version="1.0"?>
<Data description="example of ReadDate">
<type>
<date>2005-01-28T12:23:34</date>
</type>
</Data>
VB6 code to get date value:
Dim pXMLStream As IXMLStream
Set pXMLStream=New XMLStream
pXMLStream.LoadFromFile App.Path + "\data.xml"
pXMLReader.OpenElement
pXMLReader.OpenElement
Dim dateValue As Date
dateValue=pXMLReader.ReadDate