Attributes · <input type="datetime-local">
Which HTML input type=datetime-local attributes matter?
These attributes decide how the <input type="datetime-local"> behaves and what actually gets emailed to your inbox when someone submits.
| Attribute | What it does | Docs |
|---|---|---|
name | The key the value is sent under, such as callback_at. Without a name, the value is never sent. | |
min | The earliest allowed value, in the same yyyy-mm-ddTHH:mm format (such as 2026-11-03T09:00). | MDN |
max | The latest allowed value, in the same yyyy-mm-ddTHH:mm format (such as 2026-11-03T17:00). | MDN |
step | The step interval in seconds. The default is 60 (one minute). Use 1800 for 30-minute slots, or 1 for seconds. | MDN |
value | The default value in yyyy-mm-ddTHH:mm format (such as 2026-11-03T14:30). | MDN |
required | Requires a value to be chosen before the form can be submitted. | MDN |




