Parameters
- format
- A standard or custom format string (see Remarks).
The format parameter should contain either a standard format specifier or a custom format pattern that defines the format of the returned string. If format is null
or an empty string, the general format specifier, 'G', is used.
This method uses formatting information derived from the current culture.
This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.