djibe / material

Material Design 2 for Bootstrap 4 (active fork of Daemonite Material)
https://djibe.github.io/material/
MIT License
68 stars 11 forks source link

Date Picker #46

Open gaurav2103 opened 3 years ago

gaurav2103 commented 3 years ago

How can I implement the date picker to select only 1-year date range from any particular date when I have two date pickers one is the start date another is end date, for example, i have selected 01-01-2019 as the start date then I can only select end date up to 01-01-2020.

image For reference

djibe commented 3 years ago

Hi, it is wise to use flatpickr: https://flatpickr.js.org/examples/

https://djibe.github.io/material/docs/4.6/plugins/picker-flatpickr/