I am new to Momentjs. I am trying to use it to convert milliseconds to hours and minutes. Below, x is milliseconds
x = 433276000 var y = moment.duration(x, \
You can create a Moment.js date from milliseconds using moment.utc().
var milliseconds = 1000; moment.utc(milliseconds).format('HH:mm');