Answers for "how to subtract 1 day from moment js date"

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 subtract 1 day from moment js date"

Browse Popular Code Answers by Language