TimeSpan: ToString

ToString

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



 Public Function ToString(
	  Optional ByRef Format As String,
	  Optional ByVal FormatProvider As IFormatProvider ) As String

Parameters

Format
[ByRef] Optional. String. A standard or custom TimeSpan format string.
FormatProvider
[ByVal] Optional. IFormatProvider. An object that supplies culture-specific formatting information.

Return Values

String -  The string representation of the current TimeSpan value, as specified by Format and FormatProvider.

See Also

Project CorLib Overview

Class TimeSpan Overview