flatpickr /flatpickr
lightweight, powerful javascript datetimepicker with no dependencies
★ 16,448⑂ 1,453👁 188⑃ 712● 2,236▤ 137
-1
Daily
16,448
stars
1,453
forks
188
watchers
712
prs
2,236
issues
137
releases
README
flatpickr - javascript datetime picker !blue !green !confetti !red !default !dark Motivation Almost every large SPA or project involves date and time input. Browser's native implementations of those are inconsistent and limited in functionality. Most other libraries require you to pull in heavy dependencies like jQuery, Bootstrap, and moment.js. I wanted something that was good-looking out of the box, dependency-free, powerful, and extensible. Feature overview: - Dependency-free (no bloated bundles) - Simple, polished UX - Date + time input - Range selections - Ability to select multiple dates - Can be used as just a time picker - Display dates in a human-friendly format - Easily disable specific dates, date ranges, or any date using arbitrary logic - Week numbers - 51 locales - 8 colorful themes (incl. dark and material) - Numerous plugins - Libraries available for React, Angular, Vue, Ember, and more ! flatpickr provides more functionality at a fraction of the size of other libraries. Compatibility IE9 and up, Edge, iOS Safari 6+, Chrome 8+, Firefox 6+ Install & Use Demos and documentation: https://flatpickr.js.org See also: angular2+-flatpickr addon angularJS-flatpickr addon ember-flatpickr addon Preact Component React Component Stimulus.js Controller Svelte Component vue-flatpickr component lit-flatpickr component Supporting flatpickr flatpickr will never change its license, pester users for donations, or engage in other user-hostile behavior. Nevertheless, if you enjoyed working with this library or if its made your life easier, you can buy me a cup of coffee :)
Top issues
#1646Become a flatpickr dev!56 comments · 2019-02-04#1241Flatpickr close on any click when on Bootstrap Modal38 comments · 2018-02-05#1730Uncaught RangeError: Maximum call stack size exceeded using bootstrap v.4 modal22 comments · 2019-04-09#1551Handling manual date input22 comments · 2018-10-29#576Optional "Today" button in the calendar view19 comments · 2017-01-23#930Timezone18 comments · 2017-07-07#1345Range Plugin: How to manually set date of second input17 comments · 2018-04-23#2647Time select does not work correctly in 4.6.10 with altInput16 comments · 2022-03-07
Discussions
#3147MinDate disappears if I get a new instance of the picker1 comments · 2026-11-08#3130New Feature TimeRange3 comments · 2026-05-13#3128Is it possible to hide certain days of the week?1 comments · 2026-05-04#3127Who to contact about issues that can be closed?0 comments · 2026-05-01#3121Temporal API data types0 comments · 2025-12-19#3112Datetime - time picker display in UTC format0 comments · 2025-10-10#3107Аdding Tajik language0 comments · 2025-07-08#3104Docs mismatch: “mode: 'time'” works but isn’t listed in the options table2 comments · 2025-07-07
Latest release
v4.6.13 v4.6.13 2022-04-14What's Changed Fix change events not firing from the month select plugin Fix week numbers being calculated incorrectly in some cases Fix erroneous change events firing in edge cases (2668 ) Run Prettier check in the CI to reject unformatted code by @mshibuya in https://github.com/flatpickr/flatpickr/pull/2663 translated more strings into albanian by @dianfishekqi in https://github.com/flatpickr/flatpickr/pull/2674 fixes 2669 monthSelectPlugin doesnt highlight correct month, when data is loaded by @koesper in https://github.com/flatpickr/flatpickr/pull/2676 New Contributors @d