DateTime::GetDateTimeFormats Method
Converts the value of this instance to all the string representations supported by the standard date and time format specifiers.
Assembly: mscorlib (in mscorlib.dll)
| 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(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. |
![]() | 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. |
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. |

