Calm motion: animations on this site only fade, with no movement
DateTimePicker
A date and a time in one field
One field for a moment, such as the start of an event or a delivery slot. It is a date picker and a time picker, fused into one shape (see fuse when grouped). For a date only, use the date picker. For a span of days, use the date picker with range.
Basic
November 2026
MonTueWedThuFriSatSun
Value: 2026-11-14T19:30
- The value is text in the form
YYYY-MM-DDTHH:MM, in local time, as<input type="datetime-local">holds it. It has no time zone. To send it to a server, read it with your date library in the zone that you need. - The value is set only when both parts are chosen. When you clear one part, the value becomes
undefined. minandmaxuse the same form. The days outside them are disabled. The time limits apply only on the first and the last allowed day.stepspaces the suggested times, in minutes (default 15). You can still type any other minute.- In a field, the field's label names the date part. The time part is named "Time". Change that word with
labels.timeor a label pack. - On a touch screen, the date part uses the native date input, as the date picker does.
Usage
ts
import { BlessDateTimePicker } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
id | string | — | |
min | string | — | earliest moment, `YYYY-MM-DDTHH:MM` |
max | string | — | latest moment, `YYYY-MM-DDTHH:MM` |
step | number | 15 | minutes between the suggested times |
hour12 | boolean | — | |
locale | string | — | |
placeholder | string | — | |
disabled | boolean | — | |
invalid | boolean | — | |
size | "md" | "sm" | "lg" | "md" | |
labels | Partial<{ time: string; }> | — | |
modelValue | string | — | `YYYY-MM-DDTHH:MM` in local time, as `<input type="datetime-local">` holds it; unset until both parts are chosen |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: string | undefined] |