Date / time
A field to pick a date, a time, both, or a date range. It uses the browser’s own pickers, so dates show in each person’s format (1/12/2026, 12/1/2026…) and phones open their native calendar. The value is sent as soon as it is complete; limits grey out the days you can’t pick, and the server checks them again.
Date and time
Section titled “Date and time”Properties
Section titled “Properties”| Property | Type | Default | Description |
|---|---|---|---|
label |
string | Date |
Title above the field |
icon |
string | per mode | Lucide icon; defaults to a calendar, a clock or a calendar range |
mode |
date · time · datetime · range |
date |
What to pick |
min, max |
string | Limits: YYYY-MM-DD (whole days, also for date and time) or HH:MM for a time |
|
required |
boolean | false |
Can’t be emptied (no clear button) |
disabled |
boolean | false |
Set with msg.ui to lock the field |
A range is sent once both dates are set, and the end can’t be before the start.
msg.payload = '2026-12-01'; // datemsg.payload = '14:30'; // timemsg.payload = '2026-12-01T13:30:00Z'; // an ISO date, or a timestamp: Date.now()msg.payload = { from: '2026-12-01', to: '2026-12-07' }; // range (or ['2026-12-01', '2026-12-07'])msg.payload = null; // clearSetting the value doesn’t produce an output, unless Pass input messages through is on.
Output
Section titled “Output”| Mode | msg.payload |
msg.timestamp |
|---|---|---|
date |
'2026-12-01' |
local midnight, in ms |
time |
'14:30' |
— |
datetime |
'2026-12-01T13:30:00.000Z' (ISO, UTC) |
the same instant, in ms |
range |
{ from: '2026-12-01', to: '2026-12-07' } |
{ from, to }: start of the first day, end of the last, in ms |
Clearing the field sends null.