DateTime::ToString Method

 

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

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

NameDescription
System_CAPS_pubmethodToString()

Converts the value of the current DateTime object to its equivalent string representation using the formatting conventions of the current culture.(Overrides ValueType::ToString().)

System_CAPS_pubmethodToString(IFormatProvider^)

Converts the value of the current DateTime object to its equivalent string representation using the specified culture-specific format information.

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

System_CAPS_pubmethodToString(String^, IFormatProvider^)

Converts the value of the current DateTime object to its equivalent string representation using the specified format and culture-specific format information.

Return to top
Show: