Export (0) Print
Expand All

DateTime.GetDateTimeFormats Method

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
Public method GetDateTimeFormats() Converts the value of this instance to all the string representations supported by the standard date and time format specifiers.
Public method GetDateTimeFormats(Char) Converts the value of this instance to all the string representations supported by the specified standard date and time format specifier.
Public method 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.
Public method 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.
Top

Important note 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.

Show:
© 2014 Microsoft