Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Support Input from Main Stream Date Libraries #20

Open
3 tasks
Tracked by #2
lilingxi01 opened this issue Jun 3, 2022 · 0 comments
Open
3 tasks
Tracked by #2

✨ Support Input from Main Stream Date Libraries #20

lilingxi01 opened this issue Jun 3, 2022 · 0 comments

Comments

@lilingxi01
Copy link
Owner

lilingxi01 commented Jun 3, 2022

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 lilingxi01 changed the title ✨ Main Stream Date Library Support ✨ Support Input from Main Stream Date Library Jun 4, 2022
@lilingxi01 lilingxi01 added this to Ams HQ Jun 4, 2022
@lilingxi01 lilingxi01 changed the title ✨ Support Input from Main Stream Date Library ✨ Support Input from Main Stream Date Libraries Jun 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant