A newer version of this page is available. Switch to the current version.

RecurrenceInfo.DayNumber Property

Gets or sets the ordinal number of a day within a defined month.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.1.Core.dll

Declaration

public int DayNumber { get; set; }

Property Value

Type Description
Int32

A positive integer value that specifies the day number within a month.

Remarks

If the recurrence pattern is defined on a monthly or yearly time basis (the RecurrenceInfo.Type property is set to the RecurrenceType.Monthly or RecurrenceType.Yearly value), the DayNumber property specifies the number of the day within a month. This is used to calculate the date on which the corresponding appointment will reoccur. The effective values for this property are 1 to 31 inclusive which correspond to the days within a month.

RecurrenceInfo.DayNumber - Monthly RecurrenceInfo.DayNumber-Yearly

Note: If a value set for the DayNumber property via code is more than the number of days in the specified month, 31 will be assigned instead. At the same time, assigning a value less than 1 to the DayNumber property will cause a value of 1 to be assigned.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DayNumber property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Implements

See Also