I have a output resulting from a timepicker giving 12 hour format of time.
Eg : \"1:45 AM (or) \"12:15 PM\" as **string**
Is there a way to par
See documentation of moment js parse function
JSFiddle
var dt = moment("12:15 AM", ["h:mm A"]).format("HH:mm");