| 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 LtXmlComLib21.DateTime dt.ParseXSDDate"--07-26" Debug.Print dt.ToString("s") Debug.Print "DateType = " & dt.dateType Output --07-26 DateType = 8 (DTType_gMonthDay) |