ams-date-picker
ams-date-picker copied to clipboard
✨ Support Input from Main Stream Date Libraries
Overview
Should support date type of most main stream libraries, not just JavaScript Date.
This support should match the following sections: the given value state and the onChange function – all types among these areas should be the same.
If we are passing a Moment.js object into the value prop, we are going to get a Moment.js object from onChange callback.
All changes of our processor will still happen under JavaScript Date, which is the most efficient solution (per this).
Date Libraries to be supported
- [ ] Moment
- [ ] Luxon
- [ ] Day.js