This document is archived and information here might be outdated. Recommended version. |
Reads the current element value as a date.
[Visual Basic .NET]
Public Function ReadDate ( _
) As DateTime
[C#]
public DateTime ReadDate (
);
[C++]
HRESULT ReadDate(
void
);
<?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