DEV Community

Discussion on: Easily handle dates and times operations in your application using Day.js

Collapse
 
thejaredwilcurt profile image
The Jared Wilcurt

If using a library via CDN (like shown in the post) then day.js is a great choice. If you are using a bundler with tree shaking (like Vite), you might want to look into date-fns for similar functionality.

Collapse
 
sarahokolo profile image
sahra πŸ’«

Yes, you're a right. date-fns is also a very good library for handling dates and time. Works especially well in React

Collapse
 
e78230c36501509 profile image
cwtuan

difference between dayjs and date-fns: npm-compare.com/date-fns,dayjs/#ti...