Date Time Picker
A date from the calendar and a time of day as one local "YYYY-MM-DDTHH:mm" value, composed from UI SDK DatePicker and TimeInput, with min/max, a time zone suffix and locale formatting.
Example
DD/MM/YYYY
CET
Local time in the region: 2026-11-20T09:30.
date-time-picker-demo.tsxCopy code
Installation
Copy code
Usage
ImportCopy code
API reference
TimeInput
DateTimePicker
| Prop | Type | Default |
|---|---|---|
valueA local date and time, `"2026-11-02T14:30"`, or `null`. | string | null | – |
defaultValue | string | null | – |
onValueChangeRuns once both the date and the time are set, and with `null` when either is cleared. | (value: string | null) => void | – |
minThe earliest date and time, like `"2026-11-02T09:00"`. | string | – |
max | string | – |
localeThe language of dates, times and the clock; the page's by default. | string | – |
timeZoneThe zone the value is in, like `"Europe/Madrid"`. Shown after the time; the value stays local. | string | – |
labelNames the date input, when no FieldLabel does. | string | – |
labels | DateTimePickerLabels | – |
hourCycle | ComponentProps<typeof TimeInputPrimitive>["hourCycle"] | – |
name | string | – |
required | boolean | – |
disabled | boolean | – |
className | string | – |
Other exports
type DateTimePickerLabelstype DateTimePickerPropsAccessibility
- The date and the time each have their own label, so they never share an id or a name.
- timeZone shows the zone's short name and describes the time input.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.