Skip to content

GetWeekendCalendar

Gets a calendar that excludes weekends: every hour from Monday to Friday is included, and Saturday and Sunday are excluded.

1
myCalendar.GetWeekendCalendar():Calendar

Returns

A calendar that includes every hour from Monday to Friday.

Examples

Add five weekdays to today

1
var dueDate = $Calendar.GetWeekendCalendar().AddDays($Calendar.Today, 5);

See Also