[This is preliminary documentation and is subject to change.]
Formats the value of the current instance using the specified format.

C# | Visual Basic | Visual 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

- 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.

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)