Software Alternatives & Reviews

date-fns VS js-Joda

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

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 logo js-Joda

Immutable date and time library for JavaScript
  • date-fns Landing page
    Landing page //
    2022-07-30
  • js-Joda Landing page
    Landing page //
    2021-12-11

Category Popularity

0-100% (relative to date-fns and js-Joda)
Javascript UI Libraries
84 84%
16% 16
Web Frameworks
75 75%
25% 25
JS Library
80 80%
20% 20
Developer Tools
74 74%
26% 26

User comments

Share your experience with using date-fns and js-Joda. 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 72 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.

date-fns mentions (72)

  • Publish pure ESM npm package written in TypeScript to JSR
    I'm developing vremel, an utility library for Temporal API (similar to date-fns for Date). It's a pure ESM package1 and written in TypeScript. - Source: dev.to / 4 days ago
  • How to parse and format a date in JavaScript
    Date-fns (33.3k ⭐) — A library that offers great documentation, functional architecture, and utilities that handle almost any task you can think of. It has a modular design that allows you to import only the functions you need. - Source: dev.to / 5 days ago
  • Handling dates in JavaScript with Tempo
    Date-fns is a JavaScript date-handling library written in TypeScript. 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. - Source: dev.to / 7 days ago
  • JavaScript Compare Dates: From Chaos to Clarity
    Date-fns is a modern and modular library that lets you do amazing things with dates and times. You can parse, sort dates, and format them in any way you want. You can also use plugins to add more features, like natural language comparisons, relative time, or custom formats. - Source: dev.to / 7 days ago
  • 👨‍🚀 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
View more

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

What are some alternatives?

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

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

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

Day.js - 2kB JavaScript date utility library

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

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.

Strapi - Strapi is the most advanced Node.