HTML <input type="week">
Example
Define a week and year control (no time zone):
Select a week: <input type="week" name="week_year">
Try it Yourself »
Definition and Usage
The <input type="week"> defines a week and year control (no time zone).
Browser Support
The numbers in the table specify the first browser version that fully supports the element.
Attribute | |||||
---|---|---|---|---|---|
type="week" | 25.0 | 12.0 | Not supported | Not supported | 10.1 |
Syntax
<input type="week">