momentjs format hours and minutes from object code example Example: moment duratuion from hours var k = moment.duration(12, 'hours');