Parse()

DateTimeOffset::Parse(const String&) method

Converts the specified string to DateTimeOffset equivalent.

static DateTimeOffset System::DateTimeOffset::Parse(const String &input)

Arguments

ParameterTypeDescription
inputconst String&String to convert.

Return Value

DateTimeOffset that is equivalent to the input.

DateTimeOffset::Parse(const String&, const SharedPtr<IFormatProvider>&, Globalization::DateTimeStyles) method

Converts the specified string to DateTimeOffset object using the specified format provider and formatting style.

static DateTimeOffset System::DateTimeOffset::Parse(const String &input, const SharedPtr<IFormatProvider> &provider, Globalization::DateTimeStyles styles=Globalization::DateTimeStyles::None)

Arguments

ParameterTypeDescription
inputconst String&String to convert.
providerconst SharedPtr<IFormatProvider>&Format provider.
stylesGlobalization::DateTimeStylesDate and time formatting styles.

Return Value

DateTimeOffset that is equivalent to the input.

See Also