add moment js code example
Example 1: format a date moment
moment(testDate).format('MM/DD/YYYY');
Example 2: moment now format
var date = moment().format('MM/DD/YYYY');
Example 3: 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