System::DateTimeOffset::ParseExact method

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

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

static DateTimeOffset System::DateTimeOffset::ParseExact(const String &input, const String &format, const SharedPtr<IFormatProvider> &provider, Globalization::DateTimeStyles styles=Globalization::DateTimeStyles::None)
ParameterTypeDescription
inputconst String&String to convert.
formatconst String&Format string.
providerconst SharedPtr<IFormatProvider>&Format provider.
stylesGlobalization::DateTimeStylesDate and time formatting styles.

ReturnValue

DateTimeOffset that is equivalent to the input.

See Also

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

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

static DateTimeOffset System::DateTimeOffset::ParseExact(const String &input, const ArrayPtr<String> &formats, const SharedPtr<IFormatProvider> &provider, Globalization::DateTimeStyles styles)
ParameterTypeDescription
inputconst String&String to convert.
formatsconst ArrayPtr<String>&Array of format strings.
providerconst SharedPtr<IFormatProvider>&Format provider.
stylesGlobalization::DateTimeStylesDate and time formatting styles.

ReturnValue

DateTimeOffset that is equivalent to the input.

See Also