Liquid XML Data Binder 2019
VB6 ParseXSDDateTime - DateTime
Liquid XML Data Binder (C++, Java, VB6) > Reference > Visual Basic 6 > Reference > DateTime > VB6 ParseXSDDateTime - DateTime
Public Sub ParseXSDDateTime(ByVal xsdDateTime As String)
  Property Description  
    Argument xsdDateTime A valid XML Schema dateTime  
    Description Populates this DateTime with the value specified as a valid XML Schema dateTime.  
    Remarks A valid dateTime is a subset of the ISO 8601 standard comprising [-]CCYY-MM-DDThh:mm:ss[.ff][[Z]|[[+|-]hh:mm]]
where the parts in [...] are optional.
If only the Date part is provided ParseXSDDate should be used, if only the Time part is
provided ParseXSDTime should be used
Throws: on parsing invalid values.
See: ParseXSDDate(string)
See: ParseXSDTime(string)

Dim dt As New LtXmlComLib17.DateTime

dt.ParseXSDDateTime "1999-05-31T13:20:00-05:00"

Debug.Print dt.ToString("s")
Debug.Print "DateType = " & dt.dateType

DateType = 1 (DTType_dateTime)