π Function to add days from a date
The first argument is the date, the second is the number of days
sumDays('09/25/2017',5);
// Sat Sep 30 2017 00:00:00 GMT-0300 (-03)
sumDays(new Date(),2);
// Wed Sep 27 2017 10:29:33 GMT-0300 (-03)
const sumDays = (currentDate, days) => {
currentDate = new Date(currentDate);
const dayTimeStamp = 86400000;
const daycurrentTimeStamp = currentDate.getTime();
return new Date(daycurrentTimeStamp+(dayTimeStamp*days))
};