WarUI

Locale-aware date and time formatting

GRID-A24-F08P0baselinePlanned

Date, time and datetime columns are formatted with Intl.DateTimeFormat using style presets or detailed component options. Relative time ('3 days ago') is available through Intl.RelativeTimeFormat. The locale's own calendar and hour cycle are respected.

Planned. This page shows the specification from issue #204. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

Order rows with created (datetime), ship (date) and cutoff (time) columns, locale 'en-GB'.

Expected behavior

Cells reformat live. fa-IR uses the Persian calendar and th-TH the Buddhist calendar. With relative time on, values update each minute without moving the scroll position.

Planned API surface

column.type='date'|'time'|'datetime'column.dateFormat (Intl.DateTimeFormatOptions)column.relativeTimehourCyclecalendar

Acceptance criteria

  • Raw values are stored as ISO strings or Date objects and are never stored formatted. (pending)
  • The calendar override is passed to Intl and is shown in the demo readout. (pending)
  • The relative time refresh interval can be configured, and the refresh does not re-sort rows. (pending)
  • Invalid dates render the configurable placeholder. (pending)