Dayjs
Dayjs is a JavaScript library for parsing, validating, manipulating, and formatting dates and times. It is positioned as a lightweight alternative to Moment.js, offering a similar API but with a substantially smaller footprint. Dayjs emphasizes immutability and a modular design, enabling developers to extend its functionality through plugins.
At its core, Dayjs provides a concise, chainable API for common date operations such as adding or
Parsing and formatting are supported for standard ISO 8601 and RFC 2822 strings, with additional formats available
Localization is supported through locale data, letting users format dates in different languages. Locales can be
Dayjs is distributed as an open-source project under the MIT license. It is maintained by a community