XmlConvert.ToDateTimeOffset : XmlConvert « XML « VB.Net






XmlConvert.ToDateTimeOffset

 

Imports System
Imports System.Xml

Module Module1
    Sub Main()
        Dim reader As XmlReader = XmlReader.Create("myData.xml")
        reader.ReadToFollowing("time")
        Dim time As String = reader.ReadElementContentAsString()

        Dim transaction_time As DateTimeOffset = XmlConvert.ToDateTimeOffset(time)
        Console.WriteLine(transaction_time)
    End Sub 'Main
End Module

   
  








Related examples in the same category

1.XmlConvert.DecodeName
2.XmlConvert.ToDateTime converts the String to a DateTime equivalent.
3.XmlConvert.ToString converts the DateTime to a String.
4.XmlConvert.VerifyWhitespace
5.Encode and decode a local name
6.Returns valid XML characters