I'm using Angular Bootstrap UI Timepicker and if I enter 50
in the hours field, it highlights the field red, but nevertheless I get a valid date out of it that looks just like that Tue Nov 15 2016 05:00:55 GMT+0100
.
Any ideas what I can do? Thanks!
For that matter you could consider to limit the hour and minute input values, here is how to customize it for
Timepicker
min
,max
andvalidate-value
attributes forhour
andminute
input elements, for example:validate-value
directive to limit the number values in input element:Demo