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 the XNA Framework Supported by Portable Class Library ToString() Converts the value of the current DateTime object to its equivalent string representation using the formatting conventions of the current culture. (Overrides ValueType.ToString().)
Public method Supported by the XNA Framework Supported by Portable Class Library 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 the XNA Framework Supported by Portable Class Library ToString(String) Converts the value of the current DateTime object to its equivalent string representation using the specified format and the formatting conventions of the current culture.
Public method Supported by the XNA Framework Supported by Portable Class Library 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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft