prorm API Reference
    Preparing search index...

    Function formatDate

    • Format a date Format tokens: YYYY, YY, MM, DD, HH, mm, ss

      Note: exported as formatDate (not format) so it doesn't collide with the numeric format(value, decimals) helper in './index'. Local exports in index.ts take precedence over this module's export * from './date' re-export for identically-named bindings, so a top-level utils.format pointing at a date formatter would silently break numeric-formatting callers (and vice versa).

      Parameters

      • date: Date
      • formatStr: string = 'YYYY-MM-DD'

      Returns string