flatpickr

Flatpickr - Is it possible to set time to 15 minute intervals


Searched for this everywhere and it isn't in the flatpickr options. I need a way so the user can only select a date in 15 minute intervals. For example: 12:00 12:15 12:30 12:45 .....

Any help would be great. Thanks

ref-https://flatpickr.js.org/


Solution

  • Yes it is possible. flatpickr minuteIncrement option can be used to set increment intervals. Also, input time can be restricted between two values as given the example Time Picker w/ Limits.