typescript add days to date

Solutions on MaxInterview for typescript add days to date by the best coders in the world

showing results for - "typescript add days to date"
Giorgia
26 Oct 2020
1addDays(days : number): Date{
2  var futureDate = new Date();
3  futureDate.setDate(futureDate.getDate() + days);
4  return futureDate;
5}