Software Alternatives & Reviews

Luxon VS Moment.js

Compare Luxon VS Moment.js and see what are their differences

Luxon logo Luxon

Application and Data, Libraries, and Javascript Utilities & Libraries

Moment.js logo Moment.js

Parse, validate, manipulate, and display dates in JavaScript
  • Luxon Landing page
    Landing page //
    2021-08-03
  • Moment.js Landing page
    Landing page //
    2021-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

Moment.js videos

No Moment.js videos yet. You could help us improve this page by suggesting one.

+ Add video

Category Popularity

0-100% (relative to Luxon and Moment.js)
Web Frameworks
49 49%
51% 51
Javascript UI Libraries
26 26%
74% 74
JS Library
32 32%
68% 68
JavaScript Framework
0 0%
100% 100

User comments

Share your experience with using Luxon and Moment.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, Moment.js should be more popular than Luxon. It has been mentiond 62 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 (13)

  • 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 / 3 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 / 3 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
  • Luxon Timezones and JS-Date interop
    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:. - Source: dev.to / over 1 year ago
View more

Moment.js mentions (62)

  • JavaScript Compare Dates: From Chaos to Clarity
    Moment.js lets you do amazing things with dates and times in JavaScript. You can easily compare, change, and format them in different ways. For example, you can say things like "today is Monday" or "3 hours ago" or "12/31/2020". To start with Moment.js, you need to install it and import it into your JavaScript project. For example:. - Source: dev.to / about 16 hours ago
  • How to Convert String to Date in JavaScript
    To learn more about Moment.js, please visit their official website. - Source: dev.to / about 1 month ago
  • 8 NPM Packages for JavaScript Beginners [2024][+tutorials]
    Ah, Moment.js, the guardian angel of date and time manipulation. Ever needed to format a date, calculate durations, or display something like "2 days ago"? Moment.js has got your back. It's a lifesaver for anything date and time-related, making it a must-have in your project, especially if you're into making your users feel like you really get them. - Source: dev.to / about 1 month ago
  • Adding "Created At" and "Last Updated" Dates to Jekyll
    After hours of trying to figure out why Jekyll was still showing "Today" for a post I modified last week, I remembered that I am using the timeago filter from jekyll-timeago plugin. I was rendering the dates using {{ doc.last_modified_at | timeago }}. As you know, Jekyll is a static site generator, and it renders this as HTML at the time of build, and only then. This means any date rendered with timeago is... - Source: dev.to / 4 months ago
  • The 20 most used React libraries
    Moment: Handles date and time manipulations with ease. Learn more. - Source: dev.to / 4 months ago
View more

What are some alternatives?

When comparing Luxon and Moment.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.

Day.js - 2kB JavaScript date utility library

js-Joda - Immutable date and time library for JavaScript

AngularJS - AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop.

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.

Backbone.js - Give your JS App some Backbone with Models, Views, Collections, and Events