Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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 Supported by the XNA Framework Supported by Portable Class Library GetDateTimeFormats() Converts the value of this instance to all the string representations supported by the standard date and time format specifiers.
Public method Supported by the XNA Framework Supported by Portable Class Library 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 Supported by the XNA Framework Supported by Portable Class Library 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 Supported by the XNA Framework Supported by Portable Class Library 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:
© 2015 Microsoft