moment hour format code example
Example 1: moment hour minute
moment().format('HH:mm:ss')
Example 2: moment format
moment().format('MMMM Do YYYY, h:mm:ss a');
moment().format('dddd');
moment().format("MMM Do YY");
moment().format('YYYY [escaped] YYYY');
moment().format();
Example 3: convert unix timestamp to date using moment
var dateString = moment.unix(value).format("MM/DD/YYYY");
Example 4: convert 24 hour to 12 hour moment js
moment("15", "hh").format('LT')
Example 5: moment format date
moment().format();
moment().format("dddd, MMMM Do YYYY, h:mm:ss a");
moment().format("ddd, hA");
Example 6: moment now format
var date = moment().format('MM/DD/YYYY');