DaysOfWeek Element

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Specifies the day or days of the week that an exception is valid.

<DaysOfWeek>
  IntegerValue
</DaysOfWeek>

Parent Elements

Exception

Occurrences

Minimum: 0

Maximum: 1

Text Value

A text value of type integer is required.

Value

Description

1

Sunday

2

Monday

4

Tuesday

8

Wednesday

16

Thursday

32

Friday

64

Saturday

Remarks

To represent multiple days, add the values. For example, a value of 62 indicates that the exception occurs every weekday (2 + 4 + 8 + 16 + 32 = 62).

Example

In the following example, the DaysOfWeek element indicates that the calendar exception occurs on Tuesdays and Thursdays (4 + 16 = 20).

<Exception>
  <EnteredByOccurrences>0</EnteredByOccurrences>
  <TimePeriod>
    <FromDate>2007-01-01T00:00:00</FromDate>
    <ToDate>2007-12-28T23:59:00</ToDate>
  </TimePeriod>
  <Occurrences>104</Occurrences>
  <Name>Team Meeting </Name>
  <Type>6</Type>
  <Period>1</Period>
  <DaysOfWeek>20</DaysOfWeek>
  <DayWorking>1</DayWorking>
  <WorkingTimes>
    <WorkingTime>
      <FromTime>08:00:00</FromTime>
      <ToTime>12:00:00</ToTime>
    </WorkingTime>
    <WorkingTime>
      <FromTime>13:00:00</FromTime>
      <ToTime>14:00:00</ToTime>
    </WorkingTime>
    <WorkingTime>
      <FromTime>15:00:00</FromTime>
      <ToTime>16:00:00</ToTime>
    </WorkingTime>
  </WorkingTimes>
</Exception>

See Also

Concepts

Calendar Elements and XML Structure

XML Schema for the Calendars Element