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.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionvalue is null a null reference (Nothing in Visual Basic) nullptr.
FormatExceptionFormatExceptionFormatExceptionvalue is not a valid lexical value for an xs:dateTime.
OverflowExceptionOverflowExceptionOverflowExceptionAn overflow error occurred.