TryParseExact()
Contents
[
Hide
]DateTimeOffset::TryParseExact(const String&, const ArrayPtr<String>&, const SharedPtr<IFormatProvider>&, Globalization::DateTimeStyles, DateTimeOffset&) method
Tries to converts the specified string to DateTimeOffset object using the specified formats, format provider and formatting style.
static bool System::DateTimeOffset::TryParseExact(const String &input, const ArrayPtr<String> &formats, const SharedPtr<IFormatProvider> &provider, Globalization::DateTimeStyles styles, DateTimeOffset &result)
Arguments
Parameter | Type | Description |
---|---|---|
input | const String& | String to convert. |
formats | const ArrayPtr<String>& | Arrays of format strings. |
provider | const SharedPtr<IFormatProvider>& | Format provider. |
styles | Globalization::DateTimeStyles | Date and time formatting styles. |
result | DateTimeOffset& | DateTimeOffset that is equivalent to the input. |
Return Value
true if the input converted successfully, otherwise - false.
DateTimeOffset::TryParseExact(const String&, const String&, const SharedPtr<IFormatProvider>&, Globalization::DateTimeStyles, DateTimeOffset&) method
Tries to converts the specified string to DateTimeOffset object using the specified format, format provider and formatting style.
static bool System::DateTimeOffset::TryParseExact(const String &input, const String &format, const SharedPtr<IFormatProvider> &provider, Globalization::DateTimeStyles styles, DateTimeOffset &result)
Arguments
Parameter | Type | Description |
---|---|---|
input | const String& | String to convert. |
format | const String& | Format string. |
provider | const SharedPtr<IFormatProvider>& | Format provider. |
styles | Globalization::DateTimeStyles | Date and time formatting styles. |
result | DateTimeOffset& | DateTimeOffset that is equivalent to the input. |
Return Value
true if the input converted successfully, otherwise - false.
See Also
- Enum DateTimeStyles
- Typedef ArrayPtr
- Typedef SharedPtr
- Class String
- Class IFormatProvider
- Class DateTimeOffset
- Namespace System
- Library Aspose.Slides