Date and time input
There are types for the input element for selecting a time or part of a time. Appearance is dependent from browser.
code | result |
---|---|
|
Date selection |
|
Local date selection |
|
Month selection |
|
Week selection |
|
Time selection |
attributes
atribute | description |
---|---|
id, name | Name of element. The name attribute is obsolete, the id should be used or both. |
value | Value for submission. It is a string in corresponding format. For example for date it is "YYYY-MM-DD". |
min, max | Define range of possible value. |
step | The stepping interval, when clicking up and down spinner buttons. |