I am using jQuery timepicker for displaying 12 hr format time on UI. But internally as data goes to server i have to convert that format into 24 hr format. How can i do this using moment js
Here's how my time shown on display
07:50 PM
I want that to be get converted into in 24 hr format. I'm trying below method but getting same output as shown on UI.
output=moment($(this).val(),"hh:mm").format("HH mm");
Please help me out . Thank you
momentobject. I don't think this is necessarily a duplicate.