Check out example codes for "typescript add days to date". It will help you in understanding the concepts better.

Code Example 1

addDays(days : number): Date{
  var futureDate = new Date();
  futureDate.setDate(futureDate.getDate() + days);
  return futureDate;
}

Learn ReactJs, React Native from akashmittal.com