DEV Community 👩‍💻👨‍💻

Discussion on: Day.js | The lightest API to handle dates in JS

Collapse
pawelmiczka profile image
Paweł Miczka

Isn't date-fns better? I didn't tested it out but I think that dayjs will include whole library in production build. In the other hand date-fns has is tree shakable.

Collapse
susomejias profile image
Jesús Mejías Leiva Author • Edited on

Dayjs also supports tree-shaking, although date-fns is another great library for handling dates in JavaScript 🤗