Date picker
Single dates, date and time, guided typing and availability.
Date range picker
Start/end dates, shortcuts and optional times.
Time picker
12/24-hour clocks, appointment slots and time ranges.
Months, years & duration
Period selection and elapsed time beyond 24 hours.
Choose a component
A date is a calendar day. A clock is a local time of day. A duration is elapsed time and may exceed 24 hours. Date/time values do not include a UTC offset: choose a timezone explicitly when converting them to timestamps in your application.
First form
Display and storage are separate
A visitor can seeOct 15, 2026 while your record stores 2026-10-15. Change displayFormat() for presentation and storageFormat() for persistence. Both use PHP date-format tokens. Keep year, month and day in a full-date storage format; use the month/year components for partial periods.
Appearance
All controls use the FLEX text-input style. Choosesize('sm'|'md'|'lg'), variant('primary'|'secondary'|'flat'), rounding and an optional focus outline. Light and dark appearances follow the panel; calendar selections use its primary color.
Validation
The form checks required values, valid dates/times, configured limits, availability and range order. A half-completed range is not a valid value. Calendar restrictions also apply to manually entered values when the form is validated. Menu interval steps control offered options; useallowedTimes() if arbitrary off-step clock values must be rejected.
Accessibility and responsive behavior
Calendar triggers open with Enter, Space, ArrowDown or F4. Arrow keys navigate days; Home/End navigate a week; PageUp/PageDown navigate months and Shift moves by year. Escape closes a dropdown without confirming a range draft. Numeric date segments support arrow adjustment, deletion and automatic advancement. Ranges use two months and a vertical shortcut panel on wide screens, then one month and horizontally scrolling shortcuts on narrow screens. Long readonly values are clipped inside the input; opening the panel reveals the selection. Guided segments scroll horizontally so every part remains reachable. Reduced-motion preferences suppress spring and slide effects.Configuration reference
Defaults, scope and examples for every date/time option.
Events and validation recipes
PHP callbacks, browser events, dependent fields and validation.