Answers for "moment get hours differece"

3

moment date difference in days

moment(new Date()).diff(moment(new Date()), 'days') // 0
Posted by: Guest on March-02-2021
0

moment duratuion from hours

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language