🌐
Reddit
reddit.com › r/reactjs › what library do you use to handle dates?
r/reactjs on Reddit: What library do you use to handle dates?
June 9, 2023 -

Hi guys, I have to work with dates, for example I have to check if they are valid, I have to format them and to check if a date is greater than another one.

In past i used Moment, but I read that we should avoid to use it for future projects. I read someone suggested to use Datejs, but it doesn't seems to be updated, last time was 8 years ago. Currently I'm thinking to use Luxon but I someone suggest Date-fns also.

What library are you using and do you recommend me?

🌐
Reddit
reddit.com › r/frontend › what is better, date-fns or moment.js?
r/Frontend on Reddit: What is better, Date-fns or moment.js?
June 29, 2023 - Indeed, as mentioned on Moment's website there is a "better" drop-in replacement for it called dayjs with mostly the same API.
🌐
Reddit
reddit.com › r/node › what’s your favorite date package?
r/node on Reddit: What’s your favorite date package?
March 31, 2024 -

Starting a new project and we started discussing date packages(our project is date oriented, can’t find a better name for it lol, lots of appointment time generations and such)

We thought about Luxon but I wanted to hear if you guys have other suggestions

🌐
DhiWise
dhiwise.com › post › date-fns-vs-dayjs-the-battle-of-javascript-date-libraries
Date fns vs. Dayjs: A Developer's Guide to Making the Right Choice
March 22, 2024 - Are you still determining which library is best for manipulating dates and times in JavaScript? This guide compares Date fns and Dayjs, exploring their functionalities.
🌐
Reddit
reddit.com › r/javascript › day.js - fast 2kb alternative to moment.js with the same modern api
r/javascript on Reddit: Day.js - Fast 2kB alternative to Moment.js with the same modern API
October 10, 2022 - I love date-fns but at 2kbs for the whole thing dayjs is worth taking a look, format alone is 6kb according to bundlephobia:
🌐
Reddit
reddit.com › r/webdev › dayjs - fast 2kb alternative to moment.js with the same modern api
r/webdev on Reddit: dayjs - fast 2kB alternative to Moment.js with the same modern API
April 23, 2018 - Why not use date-fns for that? In operates on native Date object and not some abstraction therefore you can import only single function. ... The heaviness is due to all the locales moment.js ships with. They really need to figure a better way of distributing / picking what you need. In the mean time there's ways to make build tools drop those unused locales. One thing I don't see in the dayjs ...
🌐
Reddit
reddit.com › r/reactjs › would you recommend using moment.js for working with dates & times
Would you recommend using moment.js for working with dates & times : r/reactjs
October 8, 2024 - Nope. For new project use dayjs if you want to have same API as momentjs ... I know a lot of people like date-fns, but it still uses Date, which I find to be a horribly designed type:
Find elsewhere
🌐
Reddit
reddit.com › r/reactjs › replacing momentjs with date-fns for a smaller package size
r/reactjs on Reddit: Replacing MomentJS with Date-fns for a Smaller Package Size
September 17, 2022 - I've preferred date-fns over dayjs because I don't like the jQuery/moment style interface, but I agree that it's an easier drop-in replacement for moment.
🌐
Reddit
reddit.com › r/learnjavascript › what library do you use to handle dates?
r/learnjavascript on Reddit: What library do you use to handle dates?
June 9, 2023 -

Hi guys, I have to work with dates, for example I have to check if they are valid, I have to format them and to check if a date is greater than another one.

In past i used Moment, but I read that we should avoid to use it for future projects. I read someone suggested to use Datejs, but it doesn't seems to be updated, last time was 8 years ago. Currently I'm thinking to use Luxon but I someone suggest Date-fns also.

What library are you using and do you recommend me?

🌐
Reddit
reddit.com › r/javascript › [askjs] what's your current go-to date library?
r/javascript on Reddit: [AskJS] What's your current go-to Date library?
March 14, 2020 -

I have primarily used date-fns and momentjs in the past. I want to move one on my main projects away from Moment but I'm not sure what to move to.

This will be used in a React/Nodejs app and I'm prioritising performance over anything else. Seems the most popular currently are date-fns and dayjs - I was curious to see what everyone else went for at the moment.

🌐
Reddit
reddit.com › r/javascript › you might not need date-fns
r/javascript on Reddit: You might not need date-fns
January 9, 2018 - TLDR; Day.js is smaller than Date-FNS, and the author likes its API beter ...
🌐
GitHub
github.com › you-dont-need › You-Dont-Need-Momentjs › blob › master › README.md
You-Dont-Need-Momentjs/README.md at master · you-dont-need/You-Dont-Need-Momentjs
If you are not using timezone but only a few simple functions from moment.js, this might bloat your app, and therefore is considered overkill. dayjs has a smaller core and has very similar APIs so it makes it very easy to migrate. date-fns enables ...
Author   you-dont-need
🌐
GitHub
github.com › shadcn-ui › ui › discussions › 4817
date-fns vs dayjs? · shadcn-ui/ui · Discussion #4817
According to npm the unpacked size for each is, 22.2 MB for date-fns and 670 kB for dayjs. date-fns exports one function per file, this structure makes it tree-shakable, and bundlers will only include the code you import resulting in a much ...
Author   shadcn-ui
🌐
How-To
how-to.dev › dayjs-vs-date-fns
Day.js vs date-fns
August 7, 2021 - In this article, I'll summarize Day.js & date-fns comparison, that concludes this series. Introduction Based on what I've learned in the first round of articles, Day.js & date-fns look the most interesting. date-fns In the first test, where I used o...
🌐
DEV Community
dev.to › dmtrkovalenko › you-might-not-need-date-fns-23f7
You might not need date-fns - DEV Community
May 10, 2021 - Date-fns is not lightweight library for date/time management. There are underrated alternatives – e.g. Dayjs is much smaller when using around the same functionality.
🌐
Reddit
reddit.com › r/node › js dates are about to be fixed
r/node on Reddit: JS Dates Are About to Be Fixed
March 27, 2024 - DayJS is a decent drop-in replacement for Moment, although you'll have some growing pains thanks to the transition to being immutable. If you're starting from scratch, I'd consider a Temporal polyfill or date-fns.
🌐
LibHunt
libhunt.com › compare-date-fns-vs-dayjs
date-fns vs dayjs - compare differences and reviews? | LibHunt
It was first released in 2014. date-fns works in both the browser and Node.js. It also supports working with TypeScript and Flow (the JavaScript typechecker). date-fns is very popular, with 33.4K stars on GitHub and 20.5M npm weekly downloads, at the time of writing. Posts with mentions or reviews of dayjs.