ToString Method (TimeSpan)

XmlConvert.ToString Method (TimeSpan)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Converts the TimeSpan to a String.

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

public static string ToString(
	TimeSpan value
)

Parameters

value
Type: System.TimeSpan
The value to convert.

Return Value

Type: System.String
A string representation of the TimeSpan.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft