System::DateTimeOffset::TryParseExact method
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)
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. |
ReturnValue
true if the input converted successfully, otherwise - false.
See Also
- Class String
- Typedef ArrayPtr
- Typedef SharedPtr
- Class IFormatProvider
- Enum DateTimeStyles
- Class DateTimeOffset
- Class DateTimeOffset
- Namespace System
- Library Aspose.PDF for C++
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)
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. |
ReturnValue
true if the input converted successfully, otherwise - false.
See Also
- Class String
- Typedef SharedPtr
- Class IFormatProvider
- Enum DateTimeStyles
- Class DateTimeOffset
- Class DateTimeOffset
- Namespace System
- Library Aspose.PDF for C++