why do moment.month() + 1 code example
Example 1: moment subtract days
var startdate = moment();
startdate = startdate.subtract(1, "days");
startdate = startdate.format("DD-MM-YYYY");
Example 2: moment add 30 days
moment().add(30, 'days');
var startdate = moment();
startdate = startdate.subtract(1, "days");
startdate = startdate.format("DD-MM-YYYY");
moment().add(30, 'days');