Read either an HTMLInputElement's value directly, or the value string retrieved from an HTMLInputElement. Handles both type="date" and type="time" elements.
HTMLInputElement
type="date"
type="time"
A day of the month: 1-31 depending on the month
Hour of the day in 24 time: 0-23
Millisecond of the second: 0-999
Minute of the hour: 0-59
A month of the year: 1-12
The full, four digit year.
2023; Copy
2023;
Read either an
HTMLInputElement
's value directly, or the value string retrieved from anHTMLInputElement
. Handles bothtype="date"
andtype="time"
elements.