how to convert 12 hr to 24 vice versa javascript code example
Example: javascript conver time into 24 hour format
var dt = moment("12:15 AM", ["h:mm A"]).format("HH:mm");
var dt = moment("12:15 AM", ["h:mm A"]).format("HH:mm");