Data przyrostu daty JavaScript


  incrementeDate(dias: any) {
    var tomorrow = new Date();
    tomorrow.setDate(tomorrow.getDate() + dias);
    return tomorrow;
  }

  const date = incrementeDate(5);

// start date: 9/30/21
// result date: 10/05/21
Ángel De La Cruz