Parse()
Contents
[
Hide
]DateTime::Parse(const String&) method
Converts the specified string representation of a date and time value to the equivalent DateTime object.
static DateTime System::DateTime::Parse(const String &s)
Arguments
Parameter | Type | Description |
---|---|---|
s | const String& | The string representation of a date and time value to convert. |
Return Value
A new instance of DateTime class that represents the date and time value equivalent to that represented by the specified string.
DateTime::Parse(const String&, const SharedPtr<IFormatProvider>&, Globalization::DateTimeStyles) method
Converts the specified string representation of a date and time value to the equivalent DateTime object using culture-specific format information.
static DateTime System::DateTime::Parse(const String &s, const SharedPtr<IFormatProvider> &provider, Globalization::DateTimeStyles styles=Globalization::DateTimeStyles::None)
Arguments
Parameter | Type | Description |
---|---|---|
s | const String& | The string representation of a date and time value to convert. |
provider | const SharedPtr<IFormatProvider>& | The IFormatProvider object that provides culture-specific format information. |
styles | Globalization::DateTimeStyles | A bitwise combination of the enumeration values that provides additional information about s, about style elements that may be present in s, or about the conversion from s to a DateTime object. |
Return Value
A new instance of DateTime class that represents the date and time value equivalent to that represented by the specified string.
DateTime::Parse(const String&, const SharedPtr<Globalization::CultureInfo>&, Globalization::DateTimeStyles) method
static DateTime System::DateTime::Parse(const String &s, const SharedPtr<Globalization::CultureInfo> &culture, Globalization::DateTimeStyles styles=Globalization::DateTimeStyles::None)
DateTime::Parse(const String&, const SharedPtr<Globalization::DateTimeFormatInfo>&, Globalization::DateTimeStyles) method
static DateTime System::DateTime::Parse(const String &s, const SharedPtr<Globalization::DateTimeFormatInfo> &dtfi, Globalization::DateTimeStyles styles=Globalization::DateTimeStyles::None)
DateTime::Parse(const String&, std::nullptr_t, Globalization::DateTimeStyles) method
static DateTime System::DateTime::Parse(const String &s, std::nullptr_t, Globalization::DateTimeStyles styles=Globalization::DateTimeStyles::None)
See Also
- Enum DateTimeStyles
- Typedef SharedPtr
- Class DateTime
- Class String
- Class IFormatProvider
- Class CultureInfo
- Class DateTimeFormatInfo
- Namespace System
- Library Aspose.Slides