Period p1 = new Period(3, TimeUnit.Months); // Represents a period of 3 months
Schedule sched = new Schedule(startDate, endDate, p1, calendar, businessDayConvention, businessDayConvention, DateGeneration.Rule.Forward, false);This code generates a schedule of dates between startDate and endDate using the Period object p1 to determine the frequency of the dates. Package library: QLNet.