Typed time with popover
A text field that reads times the way people type them, with a button that opens an hour and minute grid. Use it on desktop forms where typing is fastest. It parses loose input, checks a min and max, switches 12/24-hour and stores 24-hour.
Hour
Minute
Stored as 18:30
Show code
readTyped('930') // 09:30
readTyped('7.15pm') // 19:15
readTyped('noon') // 12:00
readTyped('25:00') // null, shows the error
<input type="text" aria-describedby="help err" data-tp-typed-input>
<div role="dialog" data-tp-typed-pop hidden>…</div>