WarUI

Date and date-time column types

GRID-A07-F06P0baselinePlanned

`type: 'date'` and `type: 'datetime'` accept Date objects, ISO strings or epoch milliseconds, and format them with Intl.DateTimeFormat in a configurable time zone. Sorting and filtering operate on the instant, not on the display string.

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

Live example

An event log grid with a datetime column in ISO UTC strings and a date-only column.

Expected behavior

Changing the time zone shifts the displayed times while the sort order stays the same. Date-only values never shift day because of time zone. Relative mode shows humanized text, with the absolute time in a tooltip.

Planned API surface

type'date''datetime'dateFormattimeZoneinputFormatlocalerelativeTime

Acceptance criteria

  • Date-only values (YYYY-MM-DD) are treated as calendar dates and are not converted across time zones. (pending)
  • Invalid dates render an 'Invalid date' token and are sorted last. (pending)
  • Relative time uses Intl.RelativeTimeFormat and refreshes at most once per minute while visible. (pending)
  • Sorting uses the epoch value. (pending)