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

    Function isDateFormatCode

    • Heuristic check whether a format code string represents a date/time format. Looks for date/time tokens (y, m, d, h, s, AM/PM, A/P) while ignoring quoted strings, escaped characters, pad/fill characters (_x, *x) and bracketed directives such as [Red], [Color10], [$-409] or [<-5]. Only the elapsed-time forms [h], [mm], [ss] (any repeat count) count as date/time. An unterminated [ ends the scan with false.

      Parameters

      • formatCode: string

      Returns boolean