The following table gives several examples. This specifier must be set to one of the predefined characters listed in the following topic in MSDN: Standard Numeric Format Strings. The format specifier denotes whether values should be transformed into currency format, scientific notation, etc. xx is a sequence of optional digits called the precision specifier. In this format, A is a character called the format specifier. Standard format strings for numeric values are specified in the Axx format. Standard Format Strings for Numeric Values Then, use the FormatInfo.FormatString property to specify a standard or custom format string. To format date/time values, set this property to FormatType.DateTime. If numeric values need to be formatted, set the FormatInfo.FormatType property to FormatType.Numeric. To add custom text to the output string, you may choose between custom format specifiers (when formatting numeric or date/time values) and the composite formatting feature (when formatting any value). This topic describes frequently used standard and custom format specifiers used to format numeric and date/time values. Format specifiers are symbols that specify the way data is formatted during its conversion to a string.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |