Skip to content
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

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.
  • min and max use the same form. The days outside them are disabled. The time limits apply only on the first and the last allowed day.
  • step spaces 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.time or 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

NameTypeDefaultDescription
idstring—
minstring—earliest moment, `YYYY-MM-DDTHH:MM`
maxstring—latest moment, `YYYY-MM-DDTHH:MM`
stepnumber15minutes between the suggested times
hour12boolean—
localestring—
placeholderstring—
disabledboolean—
invalidboolean—
size"md" | "sm" | "lg""md"
labelsPartial<{ time: string; }>—
modelValuestring—`YYYY-MM-DDTHH:MM` in local time, as `<input type="datetime-local">` holds it; unset until both parts are chosen

Events

NamePayloadDescription
update:modelValue[value: string | undefined]

Released under the MIT License. Character names and artwork belong to their owners.