moment js as date code example
Example 1: moment date add
var new_date = moment(startdate, "DD-MM-YYYY").add(5, 'days');
Example 2: moment to javascript date
let now = moment()
let now = now.toDate()
var new_date = moment(startdate, "DD-MM-YYYY").add(5, 'days');
let now = moment()
let now = now.toDate()