Dayjs
Day.js is a 2kB immutable date-time library, providing a modern API as a lightweight alternative to Moment.js.
Dayjs is built in JavaScript, distributed under the MIT License, 48.6k GitHub stars from 100 contributors, latest release v1.11.20.
When to use Dayjs
Dayjs is listed here as a Development project. The directory calls out Immutable data structures, Lightweight (2kB), Compatibility with Moment.js as capabilities associated with it.
Other recorded traits for Dayjs include Modern API design, Plugin support.
Besides Development, this page also files Dayjs under JavaScript, Utils.
Dayjs compared with
Records in this directory name Moment.js, Luxon, date-fns as products people compare with Dayjs. That list is editorial metadata, not a claim that Dayjs replaces each of them.
Open-source projects that mention Dayjs are collected on a separate alternatives page.
What the Dayjs stats reflect
GitHub currently shows 48.6k GitHub stars, about 100 contributors, 2.4k forks, 1.2k open issues, latest tracked release v1.11.20. Star and activity counts here are a snapshot used as a proxy for community adoption, not a quality score.
Stats refreshed
- Language
- JavaScript
- Latest Release
- v1.11.20
- License
- MIT License
Our Newsletter
Get new Development tools right in your inbox
Get short emails with useful development projects, releases, and repos worth watching.
Key features of Dayjs
- Immutable data structures
- Lightweight (2kB)
- Compatibility with Moment.js
- Modern API design
- Plugin support
See open-source alternatives to Dayjs
Compare with
Dayjs resources
Dayjs on GitHub
Frequently asked questions
What is Dayjs?
Day.js is a 2kB immutable date-time library, providing a modern API as a lightweight alternative to Moment.js. This directory highlights Immutable data structures, Lightweight (2kB), Compatibility with Moment.js.
Is Dayjs free to use?
Dayjs is published as open source under the MIT License. The directory lists Immutable data structures, Lightweight (2kB), Compatibility with Moment.js among its recorded capabilities.
What language is Dayjs written in, and what is the latest release?
Dayjs is written primarily in JavaScript. The latest release tracked on this page is v1.11.20.
How widely is Dayjs used on GitHub?
Dayjs has about 48.6k GitHub stars across about 100 contributors. It also has about 2.4k forks. Those counts are a snapshot of community attention, not a ranking of quality.
What do people compare Dayjs with?
This directory records Moment.js, Luxon, date-fns as comparison points for Dayjs. A longer list of open-source projects that mention Dayjs is at https://www.open-source-tools.com/alternatives/dayjs.
Related tools
Date-fns
⏳ A modern JavaScript date utility library that provides comprehensive, lightweight functions for date manipulation.
Spacetime
A lightweight JavaScript library for handling timezone conversions and date-time operations.
Immer
Immer is a JavaScript library that allows you to work with immutable state by mutating the current state, simplifying state management in your applications.
Normalizr
Normalizr is a powerful utility for normalizing complex nested JSON objects according to a defined schema, enhancing efficiency in data handling and state management.
Fuse
A lightweight and powerful fuzzy-search library written in JavaScript. It facilitates searching through large collections efficiently, providing a simple interface for developers.
Gray-matter
Smarter YAML front matter parser, widely used by top projects like metalsmith, Gatsby, Netlify, and more. It is simple to use and battle-tested, supporting YAML, JSON, Coffee Front Matter, TOML, and custom parsers.