1. Reference
  2. Forms and input

<date-picker>

A date field that opens the platform's date dialog; the picked date goes into a variable.

Forms and input
date-picker.ham
<column style="gap-12">
    <date-picker label="Check-in"
                 name="checkin"
                 value="2026-12-18"/>
    <text @text="'Arriving ' + $checkin"
          style="muted"></text>
</column>
The snippet drawn by Hype Apps on a phone, in light mode The snippet drawn by Hype Apps on a phone, in dark mode
This snippet as Hype Apps draws it on a phone. It follows this page's light or dark theme.

Attributes

NameWhat it doesDefault
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

NameWhat 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.

This page is also Markdown, and all of HAM is in llms.txt.