DEV Community 👩‍💻👨‍💻

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

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.

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 🤗