momentjs subtract month code example
Example 1: moment subtract days
var startdate = moment();
startdate = startdate.subtract(1, "days");
startdate = startdate.format("DD-MM-YYYY");
Example 2: moment js subtract years
let min_date = moment().subtract(18, 'years');
Example 3: moment(endDate).subtract(1, 'month')
moment().subtract(7, 'days');