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

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 format pattern.
- formatProvider (IFormatProvider)
- The IFormatProvider to use when formatting the value, or null to use the current thread's culture to obtain a format provider.

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)