-1
let currentDateMoment = moment(currentDate)
let numberOfDateMoment = currentDateMoment.add(numberOfDays,TimeUnit.Days)
return numberOfDateMoment.date

that current date is your currentDate numberofDate is how many days added to current Date

closed as off-topic by Mawg, RockPaperLizard Feb 15 at 1:52

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • Welcome. Your question is off-topic here. Please read How to Ask and click the question mark at the top right of this page to find what is on topic here (works for all of our sites). Coding questions belong on stackoverflow.com – Mawg Feb 14 at 12:51

Browse other questions tagged or ask your own question.