DateTimeWithZone.Parse MethodDateTimeWithZone.Parse MethodDateTimeWithZone::Parse Method
Converts a lexical representation of an
xs:dateTime
to its DateTimeWithZoneDateTimeWithZoneDateTimeWithZone equivalent.
Syntax
Public Shared Function Parse( _ value As String _ ) As DateTimeWithZone
public static DateTimeWithZone Parse( string value )
public: static DateTimeWithZone Parse( String^ value )
Parameters
- value
Type: System.StringSystem.StringSystem::String^
The lexical representation of an
xs:dateTime
to convert.
Return Value
Type: XmlPrime.DateTimeWithZoneXmlPrime.DateTimeWithZoneXmlPrime::DateTimeWithZone
The DateTimeWithZoneDateTimeWithZoneDateTimeWithZone equivalent to the xs:dateTime
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:dateTime . |
OverflowExceptionOverflowExceptionOverflowException | An overflow error occurred. |