Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DateTime.ToString Method

Converts the value of the current DateTime object to its equivalent string representation.

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 Silverlight for Windows Phone Supported by Xbox 360 ToString() Converts the value of the current DateTime object to its equivalent string representation. (Overrides ValueType.ToString().)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 ToString(IFormatProvider) Converts the value of the current DateTime object to its equivalent string representation using the specified culture-specific format information.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 ToString(String) Converts the value of the current DateTime object to its equivalent string representation using the specified format.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 ToString(String, IFormatProvider) Converts the value of the current DateTime object to its equivalent string representation using the specified format and culture-specific format information.
Top

Community Additions

Show:
© 2017 Microsoft