DateTime.GetDateTimeFormats Method
.NET Framework 4.5
Converts the value of this instance to all the string representations supported by the standard date and time format specifiers.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
GetDateTimeFormats() | Converts the value of this instance to all the string representations supported by the standard date and time format specifiers. |
|
GetDateTimeFormats(Char) | Converts the value of this instance to all the string representations supported by the specified standard date and time format specifier. |
|
GetDateTimeFormats(IFormatProvider) | Converts the value of this instance to all the string representations supported by the standard date and time format specifiers and the specified culture-specific formatting information. |
|
GetDateTimeFormats(Char, IFormatProvider) | Converts the value of this instance to all the string representations supported by the specified standard date and time format specifier and culture-specific formatting information. |
Important
|
|---|
|
You should not assume that multiple calls to the GetDateTimeFormats overloads will return identical data. Depending on the specific overload, the data returned by this method can change if the current culture changes, the user overrides individual cultural settings, or an update occurs to the system's cultural data. |