Liquid XML Data Binder 2019
TryParseXSDTime(String,LxDateTime,Exception) Method

LiquidTechnologies.XmlObjects Namespace > LxDateTime Structure : TryParseXSDTime(String,LxDateTime,Exception) 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)
Parses a string containing an xs:time
Syntax
'Declaration
 
Public Shared Function TryParseXSDTime( _
   ByVal xsdTime As System.String, _
   ByRef result As LxDateTime, _
   ByRef ex As System.Exception _
) As System.Boolean
public static System.bool TryParseXSDTime( 
   System.string xsdTime,
   out LxDateTime result,
   out System.Exception ex
)

Parameters

xsdTime
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 occurred.
Remarks
Parses a xs:time string, e.g.

"13:20:00" = 1:20 PM
"13:20:30.5555" = 1:20 PM and 30.5555 seconds
"13:20:00-05:00" 1:20 PM, US Eastern Standard Time
"13:20:00Z" = 1:20 PM, Coordinated Universal Time (UTC)
"00:00:00" = midnight
"24:00:00" = midnight
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

Reference

LxDateTime Structure
LxDateTime Members