moment js parse string code example
Example 1: moment date add
var new_date = moment(startdate, "DD-MM-YYYY").add(5, 'days');
Example 2: moment get day
var check = moment(n.entry.date_entered, 'YYYY/MM/DD');
var month = check.format('M');
var day = check.format('D');
var year = check.format('YYYY');
Example 3: momentjs docs
npm install moment