moment js 24 hour format code example
Example 1: moment hour minute
moment().format('HH:mm:ss')
Example 2: convert 24 hour to 12 hour moment js
moment("15", "hh").format('LT')
Example 3: moment js print date
moment(testDate).format('MM/DD/YYYY');
Example 4: moment format heure
var time = "15:30:00";
var formatted = moment(time, "HH:mm:ss").format("LT");
console.log(formatted);
//it will return 3:30 PM