modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Interface NumFmt

    A number format the workbook defines (<numFmt>), referenced by its ID.

    interface NumFmt {
        formatCode: string;
        id: number;
    }
    Index
    formatCode: string

    The Excel format code string (e.g., '#,##0.00', 'yyyy-mm-dd').

    id: number

    The number-format ID that CellXfData.numFmtId refers to. A workbook's own definition of an ID wins over the built-in format with that ID; StyleBuilder gives a new format the ID after the highest defined one, at least 164.