Software Alternatives, Accelerators & Startups

Luxon VS date-fns

Compare Luxon VS date-fns and see what are their differences

Luxon logo Luxon

Application and Data, Libraries, and Javascript Utilities & Libraries

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.
  • Luxon Landing page
    Landing page //
    2021-08-03
  • date-fns Landing page
    Landing page //
    2022-07-30

Luxon videos

Luxon - Vehicle Emergency Safety Tool - Review

More videos:

  • Review - LUXON DESIGN ACRYLATE TECHNIQUE - step by step to success
  • Review - Racer X Garage: Luxon Gen 2 Bar Mounts

date-fns videos

No date-fns videos yet. You could help us improve this page by suggesting one.

+ Add video

Category Popularity

0-100% (relative to Luxon and date-fns)
Web Frameworks
35 35%
65% 65
Javascript UI Libraries
25 25%
75% 75
JS Library
28 28%
72% 72
Developer Tools
42 42%
58% 58

User comments

Share your experience with using Luxon 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 should be more popular than Luxon. It has been mentiond 73 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.

Luxon mentions (14)

  • How to parse and format a date in JavaScript
    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. - Source: dev.to / 29 days ago
  • A bug which is only a bug five days out of the year
    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. - Source: Hacker News / 4 months ago
  • A bug which is only a bug five days out of the year
    You should never, ever do date math naively like this. There are too many unexpected edge case, especially between time zones or daylight savings time or leap years, but even without them: https://moment.github.io/luxon/#/math In fact I would strongly argue you should never use the JS Date built-in at all because they are terrible. Use a library like Luxon or date-fns. As a frontend dev, this is the most common... - Source: Hacker News / 4 months ago
  • 23 of the best Eleventy Themes (Starters) for 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. - Source: dev.to / over 1 year ago
  • Effortlessly handle dates and times in JavaScript with Luxon
    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. - Source: dev.to / over 1 year ago
View more

date-fns mentions (73)

  • Date Formatting: Carbon, date-fns, and Vanilla JS
    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... - Source: dev.to / 21 days ago
  • 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 / 29 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 / 29 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 / about 1 month 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 / about 1 month ago
View more

What are some alternatives?

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

Day.js - 2kB JavaScript date utility library

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

js-Joda - Immutable date and time library for 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

Android SDK - The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android.