messageformat-date-skeleton
Tools for working with ICU DateFormat skeletons.
import {
DateFormatError,
DateToken,
getDateFormatter,
getDateFormatterSource,
parseDateTokens
} from 'messageformat-date-skeleton'
The package is released as an ES module only. If using from a CommonJS context, you may need to import()
it, or use a module loader like esm.
Uses Intl.DateTimeFormat internally. Position-dependent ICU DateFormat patterns are not supported, as they cannot be represented with Intl.DateTimeFormat options.
Classes
Functions
Type Aliases
Type Alias | Description |
---|
DateToken | An object representation of a parsed date skeleton token |
Messageformat is an OpenJS Foundation project, and we follow its Code of Conduct.