Identify weekend from daily RecurrencePattern

S

sgrosch1

I'm parsing a RecurrencePattern object where the recurrence type i
daily. If I'm understanding properly, the pattern Interval of 0 mean
that they only want weekdays. Is that correct? If so, how do
identify which days are weekday?

I know in the calendar options page there are checkboxes for what
workweek is. Can somebody show me how to access those checkboxe
please
 
K

Ken Slovak - [MVP - Outlook]

Have you looked at DayOfWeekMask?

olMonday = 2
olTuesday = 4
olWednesday = 8
olThursday = 16
olFriday = 32

32+16+8+4+2 = 62

If DayOfWeekMask is 62 then the work week would be Monday to Friday. The
mask is actually the OR of all the binary values of the day flag bits.
 
S

sgrosch1

That's the days selected in the recurrence pattern, not the days tha
are flagged in the Calendar options for which days the employee works.
I found the calendar options up in the registry and can compare tha
against the mask now.


'Ken Slovak - [MVP - Outlook said:
;143230']Have you looked at DayOfWeekMask?

olMonday = 2
olTuesday = 4
olWednesday = 8
olThursday = 16
olFriday = 32

32+16+8+4+2 = 62

If DayOfWeekMask is 62 then the work week would be Monday to Friday
The
mask is actually the OR of all the binary values of the day flag bits.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top