4
Another option, depending on your audience, is to use the new HTML5 input types. If you only need time you could use the "type=time". If you're looking for users to to enter a starting time/date and ending time/date then type="datetime-local" might be a good solution.