Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 884 Bytes

js-dates.md

File metadata and controls

26 lines (18 loc) · 884 Bytes

JS date libs

https://mui.com/x/react-date-pickers/base-concepts/#date-library

Port of JSR-310 i.e. the Java.time implementation, so this has all the same types. Pure implementation, not over JS Date.

Cons:

  • Need to require through @js-joda/core so we always get all the classes even if app would only need Instant or something. Due to static property initialization and dependencies between classes it looks like it isn't possible to only require single class (at least easily?).
  • 43 kB minified and compressed (advertised in readme, could be a bit different
  • with Closure), not huge, but more than some other date libs.
  • No MUI DatePicker adapter (could be added?)