dayjs@1.11.21
// 2KB immutable date time library alternative to Moment.js with the same modern API
$ npm install dayjs
downloads/wk
56,495,950
license
MIT
version
1.11.21
published
May 26, 2026
What is dayjs?
Dayjs is a lightweight date and time library that provides similar functionality to Moment.js with a modern API while using only 2KB of code. It's useful when you need to parse, validate, manipulate, and format dates in JavaScript without the overhead of larger date libraries. Developers choose Dayjs when they want a smaller bundle size and immutable operations for handling dates in web applications.
Links
Keywords
Maintainers
iamkun