1 day befre in moment js code example
Example 1: moment date add
var new_date = moment(startdate, "DD-MM-YYYY").add(5, 'days');
Example 2: momentjs docs
npm install moment
var new_date = moment(startdate, "DD-MM-YYYY").add(5, 'days');
npm install moment