Skip to main content

Module formats

Module formats 

Source
Expand description

The date format contract: PHP patterns on the server; frontend_config exports the equivalent Day.js patterns.

Enums§

Kind
Which pattern: a date, a date-time or a month/year.
Purpose
What the pattern is for.

Functions§

format
The pattern for a kind and purpose: dates.<purpose>.<kind>, then dates.<kind>, then the legacy app.date_format_solo / app.date_format, then fallback or the built-in default.
frontend_config
The shared contract for the frontend: pass the JSON to configureUtilsDates().
to_dayjs
Translate a PHP pattern to Day.js tokens.