Too many this type of old questions are already in Stack Overflow, but now I would like to know any new method to fix this problem!
<input type="time">
How can we change this 12hr to 24hr format for all browsers? It would be great this will work with only JavaScript and without any third party JS/Jquery. Can any one help?
Referenced questions:
From documentation:
So you need to change locale to get in 24hrs format.
That came to mind when I opened your same question on 2 different laptops. One is showing 24hrs format and other is showing 12hrs format.
You need to set locale in your project which has 24hrs format.
Example:
'ja-JP'
,'en-GB'
has 24hrs formatTry This Using time-picker libraries. For example: DateTimePicker.js is a zero dependency and lightweight library. Use it like: