Skip to content
Date Format
Language:en Author:AtomForge
typescript javascript intl date-format

Date formatting with @atom-forge/date-format

@atom-forge/date-format is a lightweight JavaScript/TypeScript date formatter built on Intl.DateTimeFormat. Templates control field order and separators; the locale and timezone control the displayed values.

This book takes you from choosing the package to writing predictable templates and handling localization and timezones safely.

Reading path

  1. Overview — purpose, scope, and how formatting works.
  2. Installation and API — your first call and the four parameters.
  3. Tokens and templates — the complete token reference.
  4. Locales and timezones — displaying the same instant in different contexts.
  5. Recipes and testing — practical patterns, validation, and reproducible tests.