Answers for "subtract hours from give date in moment"

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 "subtract hours from give date in moment"

Browse Popular Code Answers by Language