4.4 Creating Recurring Calendar Items

The following examples demonstrate how to create common daily, monthly, and yearly recurrence patterns.

The following is a daily event, occurring every day.

 <Recurrence>
      <Type>0</Type>
      <Interval>1</Interval>
 </Recurrence>

The following is a daily event, occurring every other day.

 <Recurrence>
      <Type>0</Type>
      <Interval>2</Interval>
 </Recurrence>

The following is a weekly event, occurring every weekday.

 <Recurrence>
      <Type>1</Type>
      <Interval>1</Interval>
      <DayOfWeek>62</DayOfWeek>
 </Recurrence>

The following is a weekly event, occurring every Saturday.

 <Recurrence>
      <Type>1</Type>
      <Interval>1</Interval>
      <DayOfWeek>64</DayOfWeek>
 </Recurrence>

The following is a monthly event, occurring on the first day of every month.

 <Recurrence>
      <Type>2</Type>
      <Interval>1</Interval>
      <DayOfMonth>1</DayOfMonth>
 </Recurrence> 

The following is a monthly event, occurring on the last day of every month.

 <Recurrence>
      <Type>3</Type>
      <Interval>1</Interval>
      <WeekOfMonth>5</WeekOfMonth>
      <DayOfWeek>127</DayOfWeek>
 </Recurrence>

The following is a monthly event, occurring on the first Saturday of every month.

 <Recurrence>
      <Type>3</Type>
      <Interval>1</Interval>
      <WeekOfMonth>1</WeekOfMonth>
      <DayOfWeek>64</DayOfWeek>
 </Recurrence>

The following is a monthly event, occurring on the first weekday of every month.

 <Recurrence>
      <Type>3</Type>
      <Interval>1</Interval>
      <WeekOfMonth>1</WeekOfMonth>
      <DayOfWeek>62</DayOfWeek>
 </Recurrence>

The following is a monthly event, occurring on the first weekend day of every month.

 <Recurrence>
      <Type>3</Type>
      <Interval>1</Interval>
      <WeekOfMonth>1</WeekOfMonth>
      <DayOfWeek>65</DayOfWeek>
 </Recurrence>

The following is a yearly event, occurring on the first day of June, every year.

 <Recurrence>
      <Type>5</Type>
      <Interval>1</Interval>
      <DayOfMonth>1</DayOfMonth>
      <MonthOfYear>6</MonthOfYear>
 </Recurrence>

The following is a yearly event, occurring on the first Saturday of June, every year.

 <Recurrence>
      <Type>6</Type>
      <Interval>1</Interval>
      <WeekOfMonth>1</WeekOfMonth>
      <DayOfWeek>64</DayOfWeek>
      <MonthOfYear>6</MonthOfYear>
 </Recurrence>

The following is a yearly event, occurring on the last day of June each month.

 <Recurrence>
      <Type>6</Type>
      <Interval>1</Interval>
      <WeekOfMonth>5</WeekOfMonth>
      <DayOfWeek>127</DayOfWeek>
      <MonthOfYear>6</MonthOfYear>
 </Recurrence>
Show: