Skip to content

Date Picker

A segmented date input with a button that opens a calendar in a popover: type the date, or pick it.

Styled with CSS Tailwind

Date picker

The segments type and step like a date field; the trigger opens a non-modal dialog anchored under the group, named by the field's label, with the focus on the selected date. Picking a date, Escape, a click outside or tabbing away close it and the focus returns to the button. The group gets data-state-open: while it is open.

mmddyyyy

Value: none

Date and time

BitBhDateTimePicker takes the same parts around date and time segments; @bind-Value is a DateTime?, and the calendar picks the date and keeps the time.

mmddyyyy––––AM

Value: none

Limits and unavailable dates

Min, Max and IsDateUnavailable reach the calendar; a typed date that breaks them marks the picker invalid (data-[invalid]:) — type a Saturday to see it.

mmddyyyy

Weekdays in the next three months.

Value: none

In a German form

@bind-Value joins EditForm validation; with a German Culture the segments read dd.MM.yyyy and the calendar's weeks start on Monday.

ddmmyyyy
An unhandled error has occurred. Reload 🗙