<date-picker>
A date field that opens the platform's date dialog; the picked date goes into a variable.
<column style="gap-12">
<date-picker label="Check-in"
name="checkin"
value="2026-12-18"/>
<text @text="'Arriving ' + $checkin"
style="muted"></text>
</column>
Attributes
| Name | What it does | Default |
|---|---|---|
label |
Field label. string |
Select date |
max |
Latest date, YYYY-MM-DD (default 2100-01-01). string |
|
min |
Earliest date, YYYY-MM-DD (default 1900-01-01). string |
|
name |
Variable the picked date (YYYY-MM-DD) is written to. string |
|
url |
Legacy: after a pick, navigate here with * replaced by the date. string |
|
value |
Initial date, YYYY-MM-DD. string |
Readings
| Name | What it does |
|---|---|
day |
The picked date's day of the month. |
month |
The picked date's month, 1-12. |
value |
The picked date as yyyy-MM-dd; empty before a pick. |
year |
The picked date's year. |
Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.