code: public Date[] getDates()
     {
        int frequency = NumberHelper.getInt(m_frequency);
        if (frequency < 1)
        {
           frequency = 1;
        }
  
        Calendar calendar = DateHelper.popCalendar(m_startDate);
        List<Date> dates = new ArrayList<Date>();
  
        switch (m_recurrenceType)
        {
           case DAILY:
           {
              getDailyDates(calendar, frequency, dates);
              break;
           }
  
           case WEEKLY:
           {
              getWeeklyDates(calendar, frequency, dates);
              break;
           }
  
           case MONTHLY:
           {
              getMonthlyDates(calendar, frequency, dates);
              break;
           }
  
           case YEARLY:
           {
              getYearlyDates(calendar, dates);
              break;
           }
        }
  
        DateHelper.pushCalendar(calendar);
        
        return dates.toArray(new Date[dates.size()]);
     }
docs: Retrieve the set of start dates represented by this recurrence data.
  
  @return array of start dates