A date picker is a browser-provided input control for entering or selecting a calendar date. The browser supplies the interaction instead of requiring application code to build it. section 1.1
Minimal date picker
Add <input type="date"> to HTML. The control provides a text field, lets users adjust month, day, and year, and can open an interactive calendar. On mobile, selection may appear in a modal window instead. section 1.1
Reading the selected date
Query the input and read its value with console.log(document.querySelector('input').value). The control also exposes change-related events and methods for stepping through dates. section 1.1
