Answers for "moment calculate duration"

1

moment calculate duration

moment
 .duration(moment(endTime, 'YYYY/MM/DD HH:mm')
 .diff(moment(startTime, 'YYYY/MM/DD HH:mm'))
 ).asHours()
Posted by: Guest on February-26-2021
0

moment duratuion from hours

var k = moment.duration(12, 'hours');
Posted by: Guest on October-13-2020

Code answers related to "moment calculate duration"

Code answers related to "Javascript"

Browse Popular Code Answers by Language