Search
DayOfWeekType Enumeration
See Also
 






Specifies the type of week day to use with monthly and yearly recurrence patterns.

Namespace: MindFusion.Scheduling
File: Enum.js

 Syntax

JavaScript  Copy Code

// enum
DayOfWeekType = {}

 Members

  Member name Description

AnyDay

Indicates any day.

Friday

Indicates Friday.

Monday

Indicates Monday.

Saturday

Indicates Saturday.

Sunday

Indicates Sunday.

Thursday

Indicates Thursday.

Tuesday

Indicates Tuesday.

Wednesday

Indicates Wednesday.

Weekend

Indicates a weekend day.

Workday

Indicates a workday.

 Remarks

Used by the Recurrence.day property.

 Example

The following code creates a Recurrence with weekly RecurrencePattern (every Wednesday) for a schedule item:

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