Liquid XML Data Binder 2020
LiquidTechnologies.XmlObjects Namespace / LxDateTime Structure / ParseXSDDate Method
The string to be parsed
The type of date to parse LxDateTimeType.Date, LxDateTimeType.GDay, LxDateTimeType.GMonth, LxDateTimeType.GMonthDay, LxDateTimeType.GYear, LxDateTimeType.GYearMonth

In This Topic
    ParseXSDDate Method
    In This Topic
    Parses a string containing an xs:date
    Syntax
    'Declaration
     
    
    Public Shared Function ParseXSDDate( _
       ByVal xsdDate As System.String, _
       ByVal dateType As LxDateTimeType _
    ) As LxDateTime
    public static LxDateTime ParseXSDDate( 
       System.string xsdDate,
       LxDateTimeType dateType
    )

    Parameters

    xsdDate
    The string to be parsed
    dateType
    The type of date to parse LxDateTimeType.Date, LxDateTimeType.GDay, LxDateTimeType.GMonth, LxDateTimeType.GMonthDay, LxDateTimeType.GYear, LxDateTimeType.GYearMonth

    Return Value

    true if the string was successfully parsed into a LxDateTime, false if an error occurred.The parsed LxDateTime object
    Exceptions
    ExceptionDescription
    If the string is not a valid dateType.
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows Server 2016, Windows Server 2012, Windows Server 2008. Please ensure you have the latest Service Pack for your operating system installed.

    See Also