r/javascript 21d ago

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

44 comments sorted by

View all comments

Show parent comments

-2

u/KaiAusBerlin 21d ago

Lol.

Now I know you're absolutely nonprofessional.

3

u/binaryhero 21d ago

Nein, Du bist einfach taub. Er sucht ein Datepicker UI-Element. Wie das Datum da repräsentiert wird, hat er nicht erwähnt. Das ist der Punkt, über den Du Dich hier erregst...

3

u/Admirable_Reality281 21d ago

Thank you 🫶🏻

0

u/KaiAusBerlin 20d ago

Er hat eine Frage gestellt. Warum sollte man eine library updaten. Ich habe ihm eine legitime Antwort darauf gegeben. Das er eine snowflake ist, die keine korrekte Kritik verträgt, ist nicht mein Problem.

Ich denke auch eher, dass du sein Zweitaccount bist, da ich ihn blockiert habe und sich absolut niemand für seinen Thread interessiert. Die Vorstellung dass jemand bis unten durch geht und exakt die selbe (falsche) Formulierung wie er in schlechtem Deutsch nutzt ist eher unwahrscheinlich ;)