Platform SDK: CDO 1.2.1 |
The DayOfMonth property returns or sets the day of the month on which the appointment recurs. Read/write.
objRecurPatt.DayOfMonth
Long
The DayOfMonth property contains the calendar date of each month on which the AppointmentItem is to recur, for example the value 1 to indicate the first day of every month. The last day of every month can be represented by the value 31 in monthly recurrences. For yearly recurrences, DayOfMonth cannot be set past the last possible day in the selected month.
If an appointment is viewed through Microsoft® Schedule+ and its DayOfMonth property has a value greater than the number of days in the specified month, Schedule+ does not generate a recurrence for that month. This applies, for example, if DayOfMonth is 29 and MonthOfYear is 2. For such an appointment, Schedule+ only generates a recurrence in leap years, whereas Microsoft® Outlook™ and CDO generate recurrences on February 28 for years other than leap years.
DayOfMonth is only valid if the value of the RecurrenceType property is CdoRecurTypeMonthly or CdoRecurTypeYearly. When DayOfMonth is valid on a newly created RecurrencePattern object, it defaults to the current day of the month.
Note If the AppointmentItem object has been made into a meeting, the DayOfMonth, DayOfWeekMask, and MonthOfYear properties are all held internally in the meeting organizer's current time zone. If these properties are displayed or read by a messaging user in a different time zone, they are not converted. The user or application accessing these properties may need to be aware that they represent the organizer's time zone.
Changes you make to properties on a RecurrencePattern object take effect when you call the underlying appointment's Send or Update method.