Here’s the Deal
Slant is powered by a community that helps you make informed decisions. Tell us what you’re passionate about to get your personalized feed and help others.
When comparing Datejs vs Luxon, the Slant community recommends Datejs for most people. In the question“What are the best JavaScript date formatting libraries?” Datejs is ranked 4th while Luxon is ranked 5th.
Ranked in these QuestionsQuestion Ranking
Common Questions
Pros
No pros yet!
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
No cons yet!
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.