increment day date javascript

56

increment day date 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

Comments

Submit
0 Comments