DateTime.GetDateTimeFormats Method

 

Converts the value of this instance to all the string representations supported by the standard date and time format specifiers.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodGetDateTimeFormats()

Converts the value of this instance to all the string representations supported by the standard date and time format specifiers.

System_CAPS_pubmethodGetDateTimeFormats(Char)

Converts the value of this instance to all the string representations supported by the specified standard date and time format specifier.

System_CAPS_pubmethodGetDateTimeFormats(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.

System_CAPS_pubmethodGetDateTimeFormats(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.

System_CAPS_importantImportant

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.

Return to top
Show: