Introduction
flow-datepicker turns a normal <input type="date">, <input type="time"> or <input type="datetime-local"> into a picker that looks the same in every browser, and adds a date range picker with presets.
Why another date picker
- The input stays real. The native input keeps its name, value,
min,max,step,requiredanddisabled. Forms post exactly what they posted before, form reset and the Back button work, and if the script never loads the browser's own picker still works. - One look everywhere. Native date inputs look different in each browser and cannot be styled. flow-datepicker draws the same field, calendar and time row everywhere.
- Light. No dependencies, no locale files, about 15 KB gzipped for all four modes.
- Keyboard and screen reader friendly. The calendar is a grid with one tab stop, the time parts are spin buttons and the popover is a labelled dialog.
What you get
| Mode | Markup | Posts |
|---|---|---|
| Date | <input type="date" data-flow-datepicker> | 2026-10-12 |
| Date range | <div data-flow-datepicker="range"> with two date inputs | two fields |
| Time | <input type="time" data-flow-datepicker> | 09:30 |
| Date and time | <input type="datetime-local" data-flow-datepicker> | 2026-10-12T09:30 |
Next: Getting started.