LiquidTechnologies.XmlObjects Namespace / LxDateTime Structure / Parse Method
The string to parse
The format the XSD date time should be in. User LxDateTimeType.None to parse any valid date/time format.

In This Topic
    Parse Method (LxDateTime)
    In This Topic
    Parses a string containing any XSD date time format ( xs:dateTime, xs:dateTimeStamp, xs:date, xs:gYearMonth, xs:gYear, xs:time, xs:gDay, xs:gMonth, xs:gMonthDay)
    Syntax
    'Declaration
     
    
    Public Shared Function Parse( _
       ByVal value As System.String, _
       ByVal expectedXmlDateTypeType As LxDateTimeType _
    ) As LxDateTime
    public static LxDateTime Parse( 
       System.string value,
       LxDateTimeType expectedXmlDateTypeType
    )

    Parameters

    value
    The string to parse
    expectedXmlDateTypeType
    The format the XSD date time should be in. User LxDateTimeType.None to parse any valid date/time format.

    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 for the given expectedXmlDateTypeType.
    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