I have 2 timestamps and i already calculated the time difference in minutes with moment plugin. Now i want to convert the minutes to HH:mm.
var x = moment('10:00', 'HH:mm');
var y = moment('11:30', 'HH:mm');
var diff = y.diff(x, 'minutes'); // 90
var convert = moment.duration(diff, "minutes").format('HH:mm');
alert(convert); // should give me 01:30 but does not work
What i am doing wrong?