TryParse()
Contents
[
Hide
]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)
Arguments
Parameter | Type | Description |
---|---|---|
input | const String& | String to convert. |
result | DateTimeOffset& | DateTimeOffset that is equivalent to the input. |
Return Value
true if the input converted successfully, otherwise - false.
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)
Arguments
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. |
Return Value
true if the input converted successfully, otherwise - false.
See Also
- Enum DateTimeStyles
- Typedef SharedPtr
- Class String
- Class DateTimeOffset
- Class IFormatProvider
- Namespace System
- Library Aspose.Slides