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

LiquidTechnologies.XmlObjects Namespace > LxDateTime Structure : TryParseXSDDate(String,LxDateTimeType,LxDateTime,Exception) Method
The string to be parsed
The type of date to parse LxDateTimeType.Date, LxDateTimeType.GDay, LxDateTimeType.GMonth, LxDateTimeType.GMonthDay, LxDateTimeType.GYear, LxDateTimeType.GYearMonth
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:date
Syntax
'Declaration
 
Public Shared Function TryParseXSDDate( _
   ByVal xsdDate As System.String, _
   ByVal dateType As LxDateTimeType, _
   ByRef result As LxDateTime, _
   ByRef ex As System.Exception _
) As System.Boolean
public static System.bool TryParseXSDDate( 
   System.string xsdDate,
   LxDateTimeType dateType,
   out LxDateTime result,
   out System.Exception ex
)

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
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.
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