r/javascript • u/Admirable_Reality281 • Jul 10 '26
AskJS [AskJS] Looking for a solid vanilla JS datepicker. Am I completely out of options?
I'm looking for a datepicker for a vanilla JS project, and somehow this seems much harder than it should be.
No, input masks aren't enough.
No, the native <input type="date"> isn't enough either.
My checklist:
- Accessible
- Localized
- Flexible formatting options
- Range picker support
- A decent set of events/hooks for integration
What I've looked at so far:
- flatpickr: hasn't been updated in about 4 years
- vanilla-js-datepicker: hasn't been updated in about 3 years, and the range functionality is pretty weak
- Vanilla Calendar Pro: Russian-maintained, which is ruled out by our dependency policy
- Air Datepicker: same issue, and it also hasn't been updated in about a year
- Litepicker: dead
- Easepick: dead
Most of the other options I've found are React-based, which is a non-starter for this project.
Am I missing something, or are there really no good options left?
0
Upvotes
View all comments
Show parent comment
-6
u/KaiAusBerlin Jul 10 '26
I know exactly you never worked in a modern team.
Okay, I'll go slow just for you.
What is a date picker UI about? About dates, right. Why would you pick a date when not working with it, right? How do you want it to be represented in code? Custom, standard (with several quirks, edge cases and strange behaviour) or standard without quirks and full international support?
Yeah, the last one. Right.
Due to the official polyfill it's already used in production. Because it's simply the better way to deal with dates in js. If you want to work safe and efficient with original Date objects you need a library for that (or end up writing your own).
So to the final question: Why should a date picker stick to modern standards and implement the temporal api?
Because it will make the library smaller, safer and faster and will make it much easier for professionals to include it and work with it.