Day (daysOfMonthType) Element

Specifies a day of the month during which the task runs.

<xs:element name="Day"
    type="dayOfMonthType"
 />

The Day element is defined by the daysOfMonthType complex type.

Parent element

Element Derived from Description
DaysOfMonth daysOfMonthType Specifies the days of the month during which the task runs.

Examples

The following XML defines the days portion of a monthly calendar that runs the task on the 1st and 15th day of the month.

<DaysOfMonth>
    <Day>1</Day>
    <Day>15</Day>
</DaysOfMonth>

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]

See also

Task Scheduler Schema Elements