Answers for "subtract hours from current time moment js"

3

moment subtract days

var startdate = moment();
startdate = startdate.subtract(1, "days");
startdate = startdate.format("DD-MM-YYYY");
Posted by: Guest on July-01-2020
0

subtract one day moment js

moment().subtract(7, 'days');
Posted by: Guest on November-01-2021
0

moment duratuion from hours

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

Code answers related to "subtract hours from current time moment js"

Browse Popular Code Answers by Language