linXiv frontend (TS/JS)
    Preparing search index...

    Function formatDate

    • Format an ISO date string ("2024-01-01" or "2024-01-01T...") as a short localized date. Returns the raw string on anything unparseable, and guards against JS's silent month/day rollover (e.g. month 13, day 99).

      Parameters

      • dateStr: string | null

      Returns string