Repository navigation
easy-datetime-picker v1.0 🎉
Initial release! An easy modern date and time picker.
Features:
Date Picker
- Configurable min/max range (data-days-back, data-days-forward)
- Disable weekends or specific weekdays
- Default-to-today and optionally disallow today
Time Picker
- Configurable slot interval (data-time-interval)
- Min/max times (data-start-time, data-end-time)
- 12 h or 24 h format (data-24hour)
- Optionally disallow past times on today
Linked Pickers
- Link a time picker to a date picker via data-linked-to
- Automatically disable past times when “today” is selected
Range Selection
- Pair start/end pickers for both date and time (data-range-group, data-range)
- Enforces start < end, with invalid values disabled and auto-reset to the nearest valid slot
Responsive Positioning
- Auto-positions above or below the button to avoid viewport overflow
Vanilla JS & CSS
- No dependencies—just drop in date-picker.css and date-picker.js
Enjou!