Example

A simple <input> tag with date attribute:

Laboratory

description & Usage

The <input type="date"> attribute displays a date picker.

The selected value includes year, month and day.

Notes

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
<input type="date">

Syntax

Attribute Values

Values Description