javascript find avarage date in array of objects moment js code example Example: moment date add var new_date = moment(startdate, "DD-MM-YYYY").add(5, 'days');