Answers for "display total hours in a day moment js"

2

moment set hours

const date = moment()

date.set({ 
  hour:0,
  minute:0,
  second:0,
  millisecond:0
})
Posted by: Guest on August-18-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