Date field
Date or date-time input with formatting and bounds.
Use for publish dates, events, or scheduling metadata.
Options
| Key | Description |
|---|---|
time |
If true, includes a time picker. |
format |
Output format string, using date-fns tokens (e.g. "yyyy-MM-dd"). |
min |
Lower allowed value (e.g. "2025-01-01"). |
max |
Upper allowed value (e.g. "2025-12-31"). |
step |
Input step value (e.g. 60). |
Notes
- Date fields initialize to the current local date.
- Datetime fields (
time: true) initialize to the current local date and time. - To keep a date field empty by default, set
default: "".
Example
- name: publish_at
type: date
default: ""
options:
time: true
format: yyyy-MM-dd'T'HH:mm