Luxon VS date-fns

Compare Luxon vs date-fns and see what are their differences.

Luxon

⏱ A library for working with dates and times in JS (by moment)
Civic Auth - Auth in Less Than 5 Minutes
Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.
www.civic.com
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
Luxon date-fns
32 126
15,828 35,644
0.7% 0.8%
6.7 9.3
11 days ago 7 months ago
JavaScript TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Luxon

Posts with mentions or reviews of Luxon. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-08.
  • How to parse and format a date in JavaScript
    4 projects | dev.to | 8 May 2024
    Luxon (14.7k ⭐) — A library that leverages JavaScript’s Intl for speed and slimness while providing what Intl doesn’t: an immutable user-friendly API. It also supports time zones and localization.
  • Handling dates in JavaScript with Tempo
    4 projects | dev.to | 7 May 2024
    Luxon is another date and time library written in JavaScript. Luxon works on both browsers and Node.js. The author of Luxon, Isaac Cambrion, was also a contributor to Moment.js before it became deprecated. Now, the team behind Moment.js recommends Luxon, calling it “an evolution of Moment.js.” Luxon’s documentation can even be found in GitHub pages for Moment.js.
  • A bug which is only a bug five days out of the year
    4 projects | news.ycombinator.com | 31 Jan 2024
    To be honest, use a library where someone else figured out the ambiguities and accounted for the edge cases. Good starting point: https://moment.github.io/luxon/#/math

    Date-fns is fine for simpler use cases but Luxon is a lot more complete, especially where it comes to time zones.

  • Top 10 react packages for SaaS platforms
    3 projects | dev.to | 4 Nov 2023
    8. Luxon: Mastering Time and Timezones for Precision Data Handling
  • What library do you use to handle dates?
    4 projects | /r/reactjs | 9 Jun 2023
    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.
  • Googling be like
    10 projects | /r/ProgrammerHumor | 13 May 2023
    Pain
  • Thoughts on the new Temporal Date API in Javascript??
    1 project | /r/webdev | 16 Feb 2023
    I haven't seen this before, but I currently use Luxon most of the time and it makes working with dates and times a lot less painful.
  • 23 of the best Eleventy Themes (Starters) for 2023
    30 projects | dev.to | 10 Jan 2023
    Eleventyone’s project scaffold includes: Eleventy with a skeleton site, a date format filter for Nunjucks based on Luxon, a tiny CSS pipeline with PostCSS, an equally tiny inline JS pipeline, JS search index generator, Netlify Dev for testing Netlify redirects, and a serverless (FaaS) development pipeline with Netlify Dev and Netlify Functions.
  • Effortlessly handle dates and times in JavaScript with Luxon
    3 projects | dev.to | 2 Jan 2023
    Luxon is a powerful and lightweight JavaScript library for working with dates and times. It was created as an alternative to the popular Moment.js library, with the goal of being faster, smaller, and easier to use.
  • Luxon Timezones and JS-Date interop
    1 project | dev.to | 23 Nov 2022
    If you ever wondered how luxon and native JS-Dates (with TimeZones) behave when converting them between each other and ISO-Date-Strings here are my tests:

date-fns

Posts with mentions or reviews of date-fns. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-04-09.
  • Supporting RTL language layout in your web application
    2 projects | dev.to | 9 Apr 2025
    You can also choose to use a library like date-fns to handle date and time localization.
  • Say Goodbye to JavaScript’s DST Date Confusion
    2 projects | dev.to | 6 Mar 2025
    These issues can also occur in date-time libraries such as moment.js, date-fns, Day.js, and luxon.
  • Day 8: D-8 🎱
    1 project | dev.to | 7 Dec 2024
    Do you know how many days left till Christmas? Well this little handy library certainly does!
  • Release Radar · September 2024: Major updates from the open source community
    4 projects | dev.to | 4 Oct 2024
    JavaScript seems to be the flavour of the month, and here's another JavaScript project for you. date-fns provides the most comprehensive and consistent toolset for manipulating JavaScript dates in a browser & Node.js. The latest version comes ten years after the very first release. There are no breaking changes in the release, and it comes with added time zone support, meaning you can select which time zone to make calculations in. There are some changes to functional arguments and a few fixes. Read up on all the changes in the release notes.
  • Date-fns: Modern JavaScript date utility library
    1 project | news.ycombinator.com | 4 Aug 2024
  • Date Formatting: Carbon, date-fns, and Vanilla JS
    2 projects | dev.to | 16 May 2024
    Working with dates and times is an essential part of web development. Whether you're building a blog, an e-commerce site, or a personal project, handling and formatting dates correctly can greatly enhance user experience. In this blog, we'll explore date formatting using three different methods: Carbon (PHP), date-fns (JavaScript), and Vanilla JS Date. We'll provide examples for each to help you understand how to format dates in various contexts.
  • Publish pure ESM npm package written in TypeScript to JSR
    7 projects | dev.to | 12 May 2024
    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.
  • How to parse and format a date in JavaScript
    4 projects | dev.to | 8 May 2024
    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.
  • Handling dates in JavaScript with Tempo
    4 projects | dev.to | 7 May 2024
    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.
  • JavaScript Compare Dates: From Chaos to Clarity
    3 projects | dev.to | 5 May 2024
    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.

What are some alternatives?

When comparing Luxon and date-fns you can also consider the following projects:

dayjs - ⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API

moment - Parse, validate, manipulate, and display dates in javascript.

moment-timezone - Timezone support for moment.js

Civic Auth - Auth in Less Than 5 Minutes
Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.
www.civic.com
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?