Software Alternatives & Reviews

js-Joda VS date-fns

Compare js-Joda VS date-fns and see what are their differences

js-Joda logo js-Joda

Immutable date and time library for JavaScript

date-fns logo date-fns

date-fns provides the most comprehensive yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js.
  • js-Joda Landing page
    Landing page //
    2021-12-11
  • date-fns Landing page
    Landing page //
    2022-07-30

Category Popularity

0-100% (relative to js-Joda and date-fns)
Javascript UI Libraries
23 23%
77% 77
Web Frameworks
30 30%
70% 70
JS Library
22 22%
78% 78
Development
100 100%
0% 0

User comments

Share your experience with using js-Joda and date-fns. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, date-fns seems to be a lot more popular than js-Joda. While we know about 68 links to date-fns, we've tracked only 6 mentions of js-Joda. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

js-Joda mentions (6)

  • Making your datepicker easier to work with
    So first, a simple example of how this works. Using our "What is your birthday" example, we can mock up this code. Note: I'm using TypeScript because it enforces the concepts at compile time, but the JsJoda library itself enforces the concepts at runtime so that we get the best of both. - Source: dev.to / about 2 years ago
  • Is It Time for the JavaScript Temporal API?
    Temporal is great, and the sooner it lands and is usable the better (AFAIK, there isn't a production-grade polyfill yet.) In the interim, JS-Joda [0] seems pretty decent, and doesn't use the wrapper approach. [0] https://js-joda.github.io/js-joda/. - Source: Hacker News / over 2 years ago
  • [HELP] Time elapsed since midnight breaks on days when DST changes
    Dealing with human dates is non-trivial thanks to localization. The easiest thing to do is to start with something zone agnostic (like UTC or epoch) do your date calculation, and then shift that into the locale you want. date-fns is fine for basic date math, but if you want something more robust, with a more cohesive API, I'd recommend js-joda. Source: over 2 years ago
  • You don't (may not) need Moment.js
    How come the js-joda library is never mentioned in discussions about javascript date/time libraries? Its API is perfect and it has been around forever. But instead the community seems to keep inventing more and more new datetime libraries. I don't understand why js-joda seems to be ignored https://js-joda.github.io/js-joda/. - Source: Hacker News / over 2 years ago
  • Temporal: Getting started with JavaScript's new date time API
    They already have that for JS! https://js-joda.github.io/js-joda/. - Source: Hacker News / almost 3 years ago
View more

date-fns mentions (68)

  • 👨‍🚀 Traversing Time with Intl.RelativeTimeFormat()
    For the longest time working with dates in JavaScript was a huge pain. That’s why libraries such as moment.js or date-fns are so popular. A lot of times I’d reach for these libraries when working with relative time formatting, but since late last year we’ve had pretty great browser support for the RelativeTimeFormat() method. In my mind, relative dates are just more visually appealing, especially for working with... - Source: dev.to / 5 months ago
  • What big media wants us to think.
    I've used this before and I like it more. Source: 12 months ago
  • What is your must have npm package on any given project?
    Date-fns and mitt (event emitter) are also frequent helpers, but I'm considering dayjs and nanoevents for these cases. Source: about 1 year ago
  • Everything you need to know about Temporal Date API
    We all know the pain of working with dates in Javascript. It needs to be more explicit, has almost no method, and could not be more clunky. For example, to create the Date January 1, 2023, you have to write a new Date (2023, 0, 1), which can be confusing for beginners, and overall just not that clear. And because of these reasons, the community has made many libraries that attempt to make Date easier to work with... - Source: dev.to / about 1 year ago
  • Building a real-time commenting app with Socket.io and React
    Next we're going to install any additional dependencies we need. In our case, we're just going to need date-fns which is a library that makes it trivial to work with datetimes in JavaScript. - Source: dev.to / about 1 year ago
View more

What are some alternatives?

When comparing js-Joda and date-fns, you can also consider the following products

Luxon - Application and Data, Libraries, and Javascript Utilities & Libraries

Moment.js - Parse, validate, manipulate, and display dates in JavaScript

Day.js - 2kB JavaScript date utility library

Nuxt.js - Nuxt.js presets all the configuration needed to make your development of a Vue.js application enjoyable. It's a perfect static site generator.

Next.js - A small framework for server-rendered universal JavaScript apps

CakePHP - The Rapid Development Framework for PHP