Format specifiers are strings that specify how to apply formatting to a base type. They are typically used with formatting functions such as String.Format() or the ToString() method. Format specifiers can be used alone or with a format provider, which is discussed later. The .NET Framework provides a set of standard format specifiers for numeric, date, time, and enumeration types. When the standard format specifiers do not meet the need, you can apply custom format specifiers to the formatting functions.
Standard numeric format specifiers are used to format numeric types to string in predefined patterns. The format specifier takes the following form:
Where A is an alphabetic format specifier and ...