Does your application use dates in some way?
I am pretty sure that there are almost no use cases that don’t use dates, and if they exist, they can...
For further actions, you may consider blocking this person and/or reporting abuse
Thx for the blog post!
Did you compare date-fns with dayjs first and if yes, what were the arguments the go with dayjs?
Both libraries are slick. Just out of curiosity as I mostly use date-fns, I would be interested to hear your experience if you compared both.
Yes, initially we wanted to adopt
date-fns
but could not move in that direction asmoment
's code was everywhere and we didn't want to revamp all the logic which was usingmoment
.Whereas in
dayjs
, the differences in the API were very minimal which reduced the fiction to writedayjs
code instead ofmoment
.date-fns
is great but for faster optimization and least effort, we chosedayjs
A really interesting feedback, thank you for sharing the experience 😃
My first idea was date-fns also. Never heard of dayjs.
I was curious and found this interesting comparison/GitHub repo called You-Dont-Need-Momentjs
That's a really great resource for comparison. I never came across this.
Thanks for sharing this.
Nice article, dayjs is a hidden gem 👍
Totally agree. After migrating away from
moment
, I realized how easy it was withdayjs
.