script to change 24 hour format to 12 hour format in javascript html 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");