📜  增加日期日期javascript代码示例

📅  最后修改于: 2022-03-11 15:01:24.987000             🧑  作者: Mango

代码示例1
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