Answers for "moment subtract 1 day from current date in javascript"

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 "moment subtract 1 day from current date in javascript"

Browse Popular Code Answers by Language