html - convert html5 time input to another format -


is there way convert html5 date input 1 format another?

for example: 2014-06-18 11:17:17 18-06-2014 11:17:17 ?

<input type="time" name="time" /> 

each browser shows differently.

  • opera (presto engine) shows right way.

  • chrome (webkit engine) shows in am/pm.

  • firefox (gecko engine) doesn't show anything, validates.

input type=time based on idea of localization takes out of hands of page author. intentional; problem has been raised in html5 discussions several times, same outcome: no change. (except possibly added clarifications text, making behavior described intended.)

that should use input type=text, pattern attribute , javascript checks input correctness on browsers not support pattern attribute natively.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -