I'm using this time picker in my HTML form. Currently it's taking 12 hours format and it's showing AM/PM
this.timeInput = UWA.createElement('input',{
"type" : "time",
"value" : "12:00",
"step" : "1800", //30 minutes
"class": "form-control eno-duedatetime-input"
}).inject(this.mInputElement);
I have problems while retrieving the time(with AM/PM) - it only gives me (hrs:min)
timeInputElement.value
Ex : If time is set to 12:00 PM - i'm only able to retrieve 12:00
I need to do either one of these:
- Find a way to retrieve AM/PM
- Or show 24 hour format.
I prefer the 1st option. Or even i get a solution to 2nd option. It should be good.
Can anyone please assist on this.