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.

TimeSpan.ToString Method

 

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

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

NameDescription
System_CAPS_pubmethodToString()

Converts the value of the current TimeSpan object to its equivalent string representation.(Overrides ValueType.ToString().)

System_CAPS_pubmethodToString(String)

Converts the value of the current TimeSpan object to its equivalent string representation by using the specified format.

System_CAPS_pubmethodToString(String, IFormatProvider)

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

Return to top
Show:
© 2017 Microsoft