System::DateTimeOffset::TryParse method
Contents
[
Hide
]DateTimeOffset::TryParse(const String&, const SharedPtr<IFormatProvider>&, Globalization::DateTimeStyles, DateTimeOffset&) method
Tries to converts the specified string to DateTimeOffset object using the specified format provider and formatting style.
static bool System::DateTimeOffset::TryParse(const String &input, const SharedPtr<IFormatProvider> &provider, Globalization::DateTimeStyles styles, DateTimeOffset &result)
Parameter | Type | Description |
---|---|---|
input | const String& | String to convert. |
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.PUB for C++
DateTimeOffset::TryParse(const String&, DateTimeOffset&) method
Tries to converts the specified string to DateTimeOffset object.
static bool System::DateTimeOffset::TryParse(const String &input, DateTimeOffset &result)
Parameter | Type | Description |
---|---|---|
input | const String& | String to convert. |
result | DateTimeOffset& | DateTimeOffset that is equivalent to the input. |
ReturnValue
true if the input converted successfully, otherwise - false.
See Also
- Class String
- Class DateTimeOffset
- Class DateTimeOffset
- Namespace System
- Library Aspose.PUB for C++