Liquid XML Data Binder 2019
VB6 ParseXSDDate - DateTime
Liquid XML Data Binder (C++, Java, VB6) > Reference > Visual Basic 6 > Reference > DateTime > VB6 ParseXSDDate - DateTime
Public Sub ParseXSDDate(ByVal xsdDate As String)
  Property Description  
    Argument xsdDate A valid XML Schema date (ie 1999-05-31)  
    Description Populates this DateTime with the value specified as a valid XML Schema date, gDay, gMonth, gYear, gMonthDay or gYearMonth.  
    Remarks A valid date comprises [-]CCYY-MM-DD[[Z]|[[+|-]hh:mm]]
A valid gDay comprises ---DD[[Z]|[[+|-]hh:mm]]
A valid gMonth comprises --MM[[Z]|[[+|-]hh:mm]]
A valid gYear comprises [-]CCYY[[Z]|[[+|-]hh:mm]]
A valid gMonthDay comprises --MM-DD[[Z]|[[+|-]hh:mm]]
A valid gYearMonth comprises [-]CCYY-MM[[Z]|[[+|-]hh:mm]]
where the parts in [...] are optional.

Throws: exception when parsing invalid values.
See: ParseXSDDateTime(string)
See: ParseXSDTime(string)
    Example Code
Dim dt As New LtXmlComLib17.DateTime


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

DateType = 8 (DTType_gMonthDay)