Search
DaysOfWeek Enumeration
See Also
 






Specifies the day of the week. This enum allows bitwise combination of its members.

Namespace: MindFusion.Scheduling
File: Enum.js

 Syntax

JavaScript  Copy Code

// enum
DaysOfWeek = {}

 Members

  Member name Description

All

Indicates all days of the week.

Friday

Indicates Friday.

Monday

Indicates Monday.

None

Indicates an undefined day value.

Saturday

Indicates Saturday.

Sunday

Indicates Sunday.

Thursday

Indicates Thursday.

Tuesday

Indicates Tuesday.

Wednesday

Indicates Wednesday.

 Example

The following code creates a recurrence for a schedule item for each Wednesday:

JavaScript  Copy Code

var p = MindFusion.Scheduling;

// setup the recurrence
var recurrence = new p.Recurrence();
recurrence.pattern = p.RecurrencePattern.Weekly;
recurrence.day = p.DayOfWeekType.Wednesday;
recurrence.startDate = date;
recurrence.recurrenceEnd = p.RecurrenceEnd.Never;
item.recurrence = recurrence;

 See Also