Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the days of the month during which the task runs.
This property is read/write.
HRESULT get_DaysOfMonth(
long *pDays
);
pDays
None
Day of month | Hex value | Decimal value |
---|---|---|
1 | 0x01 | 1 |
2 | 0x02 | 2 |
3 | 0x04 | 4 |
4 | 0x08 | 8 |
5 | 0x10 | 16 |
6 | 0x20 | 32 |
7 | 0x40 | 64 |
8 | 0x80 | 128 |
9 | 0x100 | 256 |
10 | 0x200 | 512 |
11 | 0x400 | 1024 |
12 | 0x800 | 2048 |
13 | 0x1000 | 4096 |
14 | 0x2000 | 8192 |
15 | 0x4000 | 16384 |
16 | 0x8000 | 32768 |
17 | 0x10000 | 65536 |
18 | 0x20000 | 131072 |
19 | 0x40000 | 262144 |
20 | 0x80000 | 524288 |
21 | 0x100000 | 1048576 |
22 | 0x200000 | 2097152 |
23 | 0x400000 | 4194304 |
24 | 0x800000 | 8388608 |
25 | 0x1000000 | 16777216 |
26 | 0x2000000 | 33554432 |
27 | 0x4000000 | 67108864 |
28 | 0x8000000 | 134217728 |
29 | 0x10000000 | 268435456 |
30 | 0x20000000 | 536870912 |
31 | 0x40000000 | 1073741824 |
Last | 0x80000000 | 2147483648 |
When reading or writing your own XML for a task, the days of the month are specified using the DaysOfMonth element of the Task Scheduler schema.
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | taskschd.h |
Library | Taskschd.lib |
DLL | Taskschd.dll |
Please sign in to use this experience.
Sign in