Software Alternatives & Reviews

js-Joda VS Day.js

Compare js-Joda VS Day.js and see what are their differences

js-Joda logo js-Joda

Immutable date and time library for JavaScript

Day.js logo Day.js

2kB JavaScript date utility library
  • js-Joda Landing page
    Landing page //
    2021-12-11
  • Day.js Landing page
    Landing page //
    2022-06-11

Category Popularity

0-100% (relative to js-Joda and Day.js)
Javascript UI Libraries
30 30%
70% 70
Web Frameworks
37 37%
63% 63
JS Library
30 30%
70% 70
Development
100 100%
0% 0

User comments

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

Social recommendations and mentions

Based on our record, Day.js should be more popular than js-Joda. It has been mentiond 33 times since March 2021. 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

Day.js mentions (33)

  • Mastering Time: State-of-the-Art Date Handling in JavaScript
    Similar API to Moment.js: Day.js provides a familiar API, making it easier for developers previously using Moment.js to transition. - Source: dev.to / 2 days ago
  • Complete Tutorial: React Admin Panel with refine and daisyUI
    We have to install refine's support packages for React Table and React Hook Form. We are using Tailwind Heroicons for our icons, the Day.js library for time calculations and Recharts library to plot our charts for KPI data. So, run the following and we are good to go:. - Source: dev.to / 6 months ago
  • Managify: Manage Your Teams Easily
    DayJS is a lightweight and fast JavaScript library for manipulating dates and times. It offers a moment.js-like API but with a much smaller footprint. - Source: dev.to / 10 months ago
  • Flash News App React Native (Expo^)
    Well, I haven't reviewed the code, I just checked package.json and I'll suggest you to ditch moment.js Even the creator recommends ditching it. Dayjs is a fantastic alternative. Source: 11 months ago
  • You don't need zero JS website for a perfect Lighthouse score
    This may sound a bit general but we can't forget about well-tought code. If we are using a lot of external dependencies, we can check if there aren't many lighter alternatives. Example? Some people are still using moment.js for date formatting. Why not use a lightweight 2kb alternative instead? Writing clean, organized and maintainable code won't give us a huge score boost but we are trying to save every byte of... - Source: dev.to / 12 months ago
View more

What are some alternatives?

When comparing js-Joda and Day.js, you can also consider the following products

date-fns - date-fns provides the most comprehensive yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js.

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

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

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