A parser & formatter for ICU DateFormat skeleton strings
npm install messageformat-date-skeletonjs
import {
DateFormatError,
DateToken, // TS only
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.
(date: Date | number) => string signature as the function returned by getDateFormatter(). |
---
[Messageformat] is an OpenJS Foundation project, and we follow its [Code of Conduct].
[messageformat]: https://messageformat.github.io/
[code of conduct]: https://github.com/openjs-foundation/cross-project-council/blob/master/CODE_OF_CONDUCT.md