Получите массив дня, когда вы получите начало и Finelday JS

 function getDates(beginDate: Date, endDate: Date) {
    var dateArray = new Array()
    var currentDate = beginDate
    while (currentDate <= endDate) {
      dateArray.push(currentDate)
      currentDate = addDays(1, currentDate)
    }
    return dateArray
  }

  function addDays(days: number, currentDate: Date) {
    var dat = new Date(currentDate)
    dat.setDate(dat.getDate() + days)
    return dat
  }
Chi Hao Luong