moment js chec if item is missing code example
Example 1: moment check valid date
var date = moment("2016-10-19");
var check = date.isValid();
console.log(check);
Example 2: moment date add
var new_date = moment(startdate, "DD-MM-YYYY").add(5, 'days');