- date-fns - modern JavaScript date utility library
- Add a brief comparison with Moment.js? · Issue #275 · date-fns/date-fns
- How to represent dates (without time) and times (without date)?
- Date Math vs Time Math (Moment.js Guide)
- Popular javascript date libraries like moment or date-utils are wrappers around the native javascript Date object, providing syntactic sugar. The native Date object always consist of a date, time and a timezone part. In opposite to that, js-joda is a standalone date and time implementation.
- The API has a domain-driven design with classes for the different use cases, like LocalDate, ZonedDateTime or Period. For examples LocalDate allows to handle dates like birthdays or holidays in a clean and error-safe way, especially if these dates are persisted to an external server.
- js-joda is immutable. Immutability aligns well with pure functions and with the architecture of frameworks like React and Flux.