I have an example below of code that getting the date and adding certain days.
But the result I got from log is like these 1507824000000. 
  var endDate = new Date('10/03/2017');
  var numOfDays = 10;
  console.log(endDate.setDate(endDate.getDate() + numOfDays ));
 
    