hi all, i would like to ask,
if i have a time field in an application form.
i want it in 24 hours format without the (am/pm).
how can i modify my html5 time type below?
<label>Time:-FROM</label><input type="time" name="timefrom">
hi all, i would like to ask,
if i have a time field in an application form.
i want it in 24 hours format without the (am/pm).
how can i modify my html5 time type below?
<label>Time:-FROM</label><input type="time" name="timefrom">
Probably easier to use this:
<input type="text" pattern="([01]?[0-9]|2[0-3]):[0-5][0-9]" name="timefrom">
The user get's refused when they try to submit, http://www.w3schools.com/tags/att_input_pattern.asp
if the users type am pm for the time input, modify the field with javascript, altering 3:20pm to 15:20 onblur,
two select lists, 0-23 0-59, with labels indicating 24 hour time is required
the form handler is ideally parsing the text to a timestamp anyway, so str2time in the form handler
whole range of possibilities
Hey, I actually read the manual.
wondered why I never had a bleep fill in a form wrong,/test.php?timefrom=00%3A59
is the tail of the get parameter submitted as 12:59am
the 12 hour ampm selector parses in the user agent to ISO 8601 standard representation
W3C reference problem solved: data will be submitted in 24hour time
That gets an elephant stamp :
cool
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.