moment js get code example
Example 1: moment to javascript date
let now = moment()
let now = now.toDate()
Example 2: 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