Expand description
The date format contract: PHP patterns on the server; frontend_config exports the equivalent Day.js patterns.
Enums§
Functions§
- format
- The pattern for a kind and purpose:
dates.<purpose>.<kind>, thendates.<kind>, then the legacyapp.date_format_solo/app.date_format, thenfallbackor the built-in default. - frontend_
config - The patterns of every kind and purpose in Day.js tokens, as JSON for a frontend.
- to_
dayjs - Translate a PHP pattern to Day.js tokens:
Y y m n d j H G h g i s a A D l M F w v O P U, escaped literals and any non-letter.Uneeds Day.js’sadvancedFormatplugin.