code: private void getDailyDates(Calendar calendar, int frequency, List<Date> dates)
     {
        while (moreDates(calendar, dates))
        {
           dates.add(calendar.getTime());
           calendar.add(Calendar.DAY_OF_YEAR, frequency);
        }
     }
docs: Calculate start dates for a daily recurrence.
  
  @param calendar current date
  @param frequency frequency
  @param dates array of start dates