XmlReader.ReadElementContentAsDateTime reads the current element and returns the contents as a DateTime object.
Imports System
Imports System.IO
Imports System.Xml
Public Class Sample
Public Shared Sub Main()
Using reader As XmlReader = XmlReader.Create("dataFile.xml")
reader.ReadToFollowing("date")
Dim [date] As DateTime = reader.ReadElementContentAsDateTime()
Console.WriteLine([date].ToLongDateString())
End Using
End Sub
End Class