Answers for "subtract two date return seconds momentjs"

1

how 2 subtract 2 dates using moment.js

var date1 = moment('2016-10-08 10:29:23');
var date2 = moment('2016-10-08 11:06:55');
var diff = date2.diff(date1);
Posted by: Guest on February-23-2021
0

subtract one day moment js

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

Code answers related to "subtract two date return seconds momentjs"

Code answers related to "Javascript"

Browse Popular Code Answers by Language