npm moment get year, month, date code example
Example 1: moment js add day
var new_date = moment(startdate, "DD-MM-YYYY").add(5, 'days');
Example 2: moment now format
var date = moment().format('MM/DD/YYYY');
var new_date = moment(startdate, "DD-MM-YYYY").add(5, 'days');
var date = moment().format('MM/DD/YYYY');