Liquid XML Data Binder 2021
LiquidTechnologies.XmlObjects Namespace / LxDateTime Structure / TryParseXSDDateTime Method
The string to be parsed
The resulting LxDateTime object (if true is returned)
The System.Exception describing the error is the string could not be parsed (and false was returned)

In This Topic
    TryParseXSDDateTime Method
    In This Topic
    Parses a string containing an xs:dateTime
    Syntax
    'Declaration
     
    
    Public Shared Function TryParseXSDDateTime( _
       ByVal xsdDateTime As System.String, _
       ByRef result As LxDateTime, _
       ByRef ex As System.Exception _
    ) As System.Boolean
    public static System.bool TryParseXSDDateTime( 
       System.string xsdDateTime,
       out LxDateTime result,
       out System.Exception ex
    )

    Parameters

    xsdDateTime
    The string to be parsed
    result
    The resulting LxDateTime object (if true is returned)
    ex
    The System.Exception describing the error is the string could not be parsed (and false was returned)

    Return Value

    true if the string was successfully parsed into a LxDateTime, false if an error occured.
    Remarks
    Parses a xs:dateTime string, e.g.

    "2004-04-12T13:20:00" = 1:20 pm on April 12, 2004
    "2004-04-12T13:20:15.5" = 1:20 pm and 15.5 seconds on April 12, 2004
    "2004-04-12T13:20:00-05:00" = 1:20 pm on April 12, 2004, US Eastern Standard Time
    "2004-04-12T13:20:00Z" = 1:20 pm on April 12, 2004, Coordinated Universal Time(UTC)
    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