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
public:
virtual String^ ToString(
	String^ patternText, 
	IFormatProvider^ formatProvider
) sealed
Parameters
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
String
A String containing the value of the current instance in the specified format.

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