JSFiddle - React, Tailwind, and code Playground
by pjambet
JavaScript
calculateDateFromDays = function(startDate, days) {
var nextDate = new Date()
nextDate.setDate(new Date(startDate).getDate() + days)
return nextDate
};
alert(calculateDateFromDays("10-28-2012", 4));