Class NumberFormats
- Namespace
- SheetStream.Styles
- Assembly
- SheetStream.dll
Frequently used Excel number format codes.
public static class NumberFormats
- Inheritance
-
NumberFormats
- Inherited Members
Fields
Date
ISO-style date.
public const string Date = "yyyy-mm-dd"
Field Value
DateTime
ISO-style date and time.
public const string DateTime = "yyyy-mm-dd hh:mm:ss"
Field Value
Decimal2
Two decimals with thousands separator.
public const string Decimal2 = "#,##0.00"
Field Value
Duration
Elapsed time that can exceed 24 hours.
public const string Duration = "[h]:mm:ss"
Field Value
General
Excel's default format.
public const string General = "General"
Field Value
Integer
Whole number with thousands separator.
public const string Integer = "#,##0"
Field Value
Percent
Percentage with two decimals.
public const string Percent = "0.00%"
Field Value
Text
Forces text display; numbers are shown as typed.
public const string Text = "@"