Noda Time
ToString Method (patternText, formatProvider)
NamespacesNodaTimeDurationToString(String, IFormatProvider)
Formats the value of the current instance using the specified format.
Declaration Syntax
C#Visual BasicVisual C++
public string ToString(
	string patternText,
	IFormatProvider formatProvider
Public Function ToString ( 
	patternText As String,
	formatProvider As IFormatProvider
) As String
virtual String^ ToString(
	String^ patternText, 
	IFormatProvider^ formatProvider
) sealed
patternText (String)
The String specifying the pattern to use. -or- null to use the default pattern defined for the type of the IFormattable implementation.
formatProvider (IFormatProvider)
The IFormatProvider to use to format the value. -or- null to obtain the numeric format information from the current locale setting of the operating system.
Return Value
A String containing the value of the current instance in the specified format.

Assembly: NodaTime (Module: NodaTime.dll) Version: (1.2.0)