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 needInstant
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?)
-
2kB Moment.js modern alternative, same API
-
MUI DatePicker adapter