When comparing Moment.js vs Luxon, the Slant community recommends Moment.js for most people. In the question“What are the best JavaScript date formatting libraries?” Moment.js is ranked 2nd while Luxon is ranked 5th. The most important reason people chose Moment.js is:
Moment.js is open source and free to use.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Open source
Moment.js is open source and free to use.
Pro Customizable
Moment allows you to customize almost anything which is very helpful.
Pro Time zone support
Claims to be the best date formatting library at handling time zones
Pro Explicit API
Function names describe exactly what they do so it's easier to work with.
Pro Immutable
All types in Luxon are immutable making it more predictable.
Cons
Con Relatively big library
The library has to be downloaded in full (currently ~16KB minified and compressed) which includes lots of functions that the user doesn't necessarily need or want.
Con Lacks relative date formatting functions
Luxon currently doesn't have any relative date formatting functions (e.g. from(time), to(time), fromNow(), toNow(), etc..). Its creators are waiting for modern browsers to implement the Relative Time Format which can take a while.
Alternative Products
