Hacker0x01 / react-datepicker

A simple and reusable datepicker component for React
https://reactdatepicker.com/
MIT License
7.93k stars 2.23k forks source link

Date management library agnostic via "date-io" #2455

Closed hazem3500 closed 3 years ago

hazem3500 commented 3 years ago

Is your feature request related to a problem? Please describe. If a project already depends on another date management library like moment or luxon it would be better if they didn't have to depend on another date management library when using react-datepicker (date-fns), and having react-datepicker tied to a date management library makes it hard to support other calendar systems such as Jalali and Hijri.

Describe the solution you'd like We can make react-datepicker depend on date-io which offers an abstraction over the common date management libraries, that way a project can utilize the date management library that they are already using, also now we'll be able to support other calendar systems by just switching the date management library.

Additional context this is how material-ui-picker handles it.

vutran commented 3 years ago

This seems related to #2402

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.