DateWithZone.Parse MethodDateWithZone.Parse MethodDateWithZone::Parse Method
Converts a lexical representation of an
xs:date to its DateWithZoneDateWithZoneDateWithZone equivalent.
Syntax
Public Shared Function Parse( _ value As String _ ) As DateWithZone
public static DateWithZone Parse( string value )
public: static DateWithZone Parse( String^ value )
Parameters
- value
Type: System.StringSystem.StringSystem::String^
The lexical representation of an
xs:dateto convert.
Return Value
Type: XmlPrime.DateWithZoneXmlPrime.DateWithZoneXmlPrime::DateWithZone
The DateWithZoneDateWithZoneDateWithZone equivalent to the xs:date represented by value.
Exceptions
| Exception | Condition |
| ArgumentNullExceptionArgumentNullExceptionArgumentNullException | value is null
a null reference (Nothing in Visual Basic)
nullptr. |
| FormatExceptionFormatExceptionFormatException | value is not a valid lexical value for an xs:date. |
| OverflowExceptionOverflowExceptionOverflowException | An overflow error occurred. |
