code: private void getMonthlyDates(Calendar calendar, int frequency, List<Date> dates)
     {
        if (m_relative)
        {
           getMonthlyRelativeDates(calendar, frequency, dates);
        }
        else
        {
           getMonthlyAbsoluteDates(calendar, frequency, dates);
        }
     }
docs: Calculate start dates for a monthly recurrence.
  
  @param calendar current date
  @param frequency frequency
  @param dates array of start dates