When I'm asked to handle dates, I just quit and find a job elsewhere. Answer from robby_arctor on reddit.com
npm Trends
npmtrends.com › date-fns-vs-dayjs-vs-luxon-vs-moment
date-fns vs dayjs vs luxon vs moment | npm trends
Comparing trends for date-fns 4.1.0 which has 51,878,372 weekly downloads and 36,508 GitHub stars vs. dayjs 1.11.19 which has 40,030,852 weekly downloads and 48,581 GitHub stars vs. luxon 3.7.2 which has 23,996,657 weekly downloads and 16,371 GitHub stars vs. moment 2.30.1 which has 30,993,763 weekly downloads and 48,051 GitHub stars.
NPM Compare
npm-compare.com › date-fns,dayjs,luxon,moment
date-fns vs dayjs vs moment vs luxon | JavaScript Date and Time Manipulation Libraries
Choose date-fns if you prioritize bundle size, functional style, and fine-grained control. Choose dayjs if you want a lightweight, moment-like API with plugin flexibility. Choose luxon if you need robust time zone handling out of the box and prefer a modern, object-oriented API.
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
Luxon · No · High · OO · - Good (Intl) date-fns · Yes · High · Functional · 64 · Good (date-fns-tz) dayjs · No · High · OO · 138 · Good (Intl) Removed moment.js to replace with date-fns - build output reduced by 40% —Jared Farago from webnode project.
Author you-dont-need
Reddit
reddit.com › r/react › luxon vs datefns
r/react on Reddit: Luxon vs DateFns
March 27, 2024 -
Which library do u guys prefer and why? When does the one makes more sense than the other once?
Ps. I am building a event calendar application
Top answer 1 of 2
3
I use DayJs. Mostly because the bundle size is tiny and because the old code was moment and the migration was very easy. It’s worth checking out imo
2 of 2
1
I like dayjs, but they have a timezone problem that has been unfixed for a while, and Luxon seems to be the only acurrate one, despite a larger bundle size. If you don't work with timezones (or DST), dayjs should be perfect. However, (as of May 2024) since you're working on a event calendar app, you should be aware that if you use dayjs or datefns timezone functions and add a week, where the resulting date has daylight savings, dayjs (and DateFns) will ignore it. To illustrate: dayjs.utc('2020-03-04T10:00:00Z').tz('America/New_York').add(1, 'week') // offset should be -240 since DST happens on 2020-03-05 // but the offset remains what the starting offset is, (-300) Both dayjs and datefns have this issue. A recurrence pattern of "Every Wednesday 5:00pm in New York", New Yorkers will expect the event to recur on 5:00pm every wednesday, local time, whether it be in EDT or EST. Dayjs and DateFns don't take this into account, which result in some wednesdays being 6:00pm local time (or 4:00pm) depending on what the starting timezone is.
CodeSandbox
codesandbox.io › s › timezone-conversion-comparison-dayjs-vs-momentjs-vs-luxon-vs-date-fns-tz-5md9k
Timezone Conversion - Comparison (dayjs vs. momentjs vs. luxon vs. date-fns-tz) - CodeSandbox
September 8, 2021 - Timezone Conversion - Comparison (dayjs vs. momentjs vs. luxon vs. date-fns-tz) by provi using date-fns, date-fns-tz, dayjs, luxon, moment, moment-timezone, parcel-bundler
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?
NPM Compare
npm-compare.com › date-fns,date-fns-tz,dayjs,luxon,moment
date-fns vs dayjs vs moment vs luxon vs date-fns-tz: Which is Better JavaScript Date Manipulation Libraries?
This modularity helps keep bundle ... overhead of a large library, date-fns is an excellent choice. dayjs is another lightweight alternative to Luxon that offers a simple and elegant API for date manipulation....
MeasureThat
measurethat.net › Benchmarks › Show › 27231 › 1 › dayjs-vs-luxon-vs-js-joda-vs-date-fns-manipulating
Benchmark: dayjs vs luxon vs js-joda vs date-fns (manipulating) - MeasureThat.net
dayjs vs luxon vs js-joda vs date-fns (formatting) dayjs vs luxon vs js-joda vs date-fns (parsing) luxon vs datefns adding · Comments · × · Do you really want to delete benchmark? Cancel Delete · × · FAQ: FAQ · Source code: GitHub/MeasureThat.net · Report issues: MeasureThat.net/Issues ·
MeasureThat
measurethat.net › Benchmarks › Show › 23925 › 0 › luxon-vs-datefns-vs-moment-vs-dayjs
Benchmark: luxon vs datefns vs moment vs day.js - MeasureThat.net
luxon vs datefns vs moment vs dayjs (calculations) luxon vs datefns vs moment vs dayjs · luxon 3.2.1 vs datefns vs moment vs dayjs (formatting) luxon vs datefns adding · Comments · × · Do you really want to delete benchmark? Cancel Delete · × · FAQ: FAQ ·
npm Trends
npmtrends.com › date-fns-vs-day-vs-dayjs-vs-js-joda-vs-luxon
date-fns vs day vs dayjs vs js-joda vs luxon | npm trends
Comparing trends for date-fns 4.1.0 which has 30,620,012 weekly downloads and 36,043 GitHub stars vs. day 0.0.2 which has 442 weekly downloads and 0 GitHub stars vs. dayjs 1.11.13 which has 24,658,302 weekly downloads and 48,139 GitHub stars vs. js-joda 1.11.0 which has 55,010 weekly downloads and 1,646 GitHub stars vs. luxon 3.7.1 which has 14,697,655 weekly downloads and 16,068 GitHub stars.
JavaScript in Plain English
javascript.plainenglish.io › javascript-date-libraries-showdown-228adb151b09
JavaScript Date Libraries Showdown | by Alex Streza | JavaScript in Plain English
August 20, 2021 - JavaScript Date Libraries Showdown Moment vs. Luxon vs. Date-fns vs. DayJS Manipulating dates is one of the most complex topics to be handled in any application. Timezones, localization and …
Hacker News
news.ycombinator.com › item
Day.js – Fast 2kB alternative to Moment.js with the same modern API | Hacker News
October 11, 2022 - As far as I know, issue #1450 is the last remaining blocker for the standardization. I'd assume that this will be resolved in the next months. So Temporal will likely be officially released with ECMAScript 2023, but browser vendors and other implementors will start shipping it before the offical ...
MeasureThat
measurethat.net › Benchmarks › Show › 33217 › 1 › luxon-vs-dayjs-vs-date-fns-vs-temporal-polyfill-vs-mome
Benchmark: luxon vs dayjs vs date-fns vs temporal-polyfill vs moment (formatting) - MeasureThat.net
luxon vs dayjs vs date-fns vs temporal-polyfill (formatting) Comments · × · Do you really want to delete benchmark? Cancel Delete · × · FAQ: FAQ · Source code: GitHub/MeasureThat.net · Report issues: MeasureThat.net/Issues · Based on: Benchmark.js ·
Libhunt
nodejs.libhunt.com › compare-luxon-vs-dayjs
Luxon vs dayjs | LibHunt
Compare Luxon and dayjs's popularity and activity. Categories: Date. Luxon is less popular than dayjs.