0
How to make time input with 24 hour format using javascript
3 Respostas
+ 2
let timeVar = new Date();
console.log( timeVar.toString());
+ 2
I recommend using MomentJS or some other date / time library.
https://momentjs.com
It will make this a lot easier.