Aleksej Yarmolaev
Aleksej Yarmolaev

Reputation: 15

HTML input time max at midnight

I am trying to setup a input field like

<input type="time" id="end" step="1800" min="10:00" max="24:00">

The problem is it seems like 24:00 is not valid format for "Midnight". Now I am wondering which would be valid.

Tank you for your help.

Upvotes: 0

Views: 552

Answers (1)

pwet
pwet

Reputation: 61

I'm not sure I understand what you're trying to do. To me the time for midnight is 00:00 (the first hour of the next day). The last second of a day is 23:59:59.

Upvotes: 2

Related Questions