ams-date-picker icon indicating copy to clipboard operation
ams-date-picker copied to clipboard

✨ Support Input from Main Stream Date Libraries

Open lilingxi01 opened this issue 3 years ago • 0 comments

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

lilingxi01 avatar Jun 03 '22 20:06 lilingxi01