Single Date + Time
Default booking style picker with time selection and clear title label.
Show setup code
pick("#demo-single", {
enableTime: true,
dateFormat: "Y-m-d H:i",
calendarTitle: "Select a date",
announceChanges: true
});
Tip: These controls change CSS variables live so you can inspect what a11y_datetime looks like in different design systems.
Default booking style picker with time selection and clear title label.
pick("#demo-single", {
enableTime: true,
dateFormat: "Y-m-d H:i",
calendarTitle: "Select a date",
announceChanges: true
});
Check-in / check-out flow with keyboard-friendly month and day traversal.
pick("#demo-range", {
mode: "range",
dateFormat: "Y-m-d",
calendarTitle: "Select a date range",
announceChanges: true
});
Useful for blackout dates, campaign days, or flexible attendance planning.
pick("#demo-multiple", {
mode: "multiple",
dateFormat: "Y-m-d",
conjunction: ", ",
calendarTitle: "Select dates",
announceChanges: true
});
Compact time chooser for appointments, calls, and shift start windows.
pick("#demo-time", {
enableTime: true,
noCalendar: true,
dateFormat: "H:i",
calendarTitle: "Select a time",
announceChanges: true
});
Toggle optional UI behavior for titlebar, close button, and initial keyboard day focus.
pick("#demo-optional", {
dateFormat: "Y-m-d",
calendarTitle: "Optional feature demo",
showTitleBar: true,
showCloseButton: true,
initialDayFocus: "today",
announceChanges: true
});
Constrain date range and disable non-business days for scheduling workflows.
pick("#demo-limits", {
minDate: "today",
maxDate: new Date().fp_incr(30),
disable: [
function (date) {
return date.getDay() === 0 || date.getDay() === 6;
}
],
calendarTitle: "Business day booking"
});
Store machine format while showing a user-friendly date string in the UI.
pick("#demo-alt", {
altInput: true,
altFormat: "l, d F Y",
dateFormat: "Y-m-d",
defaultDate: "today",
calendarTitle: "Human friendly date"
});
Advanced picker with week numbers, 24h clock, and second-level precision.
pick("#demo-precision", {
enableTime: true,
enableSeconds: true,
time_24hr: true,
weekNumbers: true,
dateFormat: "Y-m-d H:i:S",
calendarTitle: "Precise date and time"
});
Pick an entire calendar week with hover preview and week number output.
pick("#demo-weekselect", {
weekNumbers: true,
plugins: [plugins_weekSelect.default()],
calendarTitle: "Select a week",
announceChanges: true
});
Always-visible calendar for dashboards, kiosks, or booking sidebars.
pick("#demo-inline", {
inline: true,
dateFormat: "Y-m-d",
defaultDate: "today",
calendarTitle: "Inline planning"
});
Keyboard: focus input, press Enter to open, Tab through controls, Arrow keys move days/months, Enter/Space selects, Esc closes.
General-purpose UI with neutral surfaces and medium contrast.
--a11y-dt-day-bg / --a11y-dt-month-bg
Airy typography and lower visual noise for content-heavy products.
--a11y-dt-font-size / --a11y-dt-radius
Stronger borders and day contrast for demanding accessibility baselines.
--a11y-dt-day-fg / --a11y-dt-calendar-border
All variations are done without changing picker internals, only through configuration and CSS variables.