Answers for "how to substract day from date 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

Code answers related to "how to substract day from date moment js"

Browse Popular Code Answers by Language