Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 1.71 KB

Project.WeekDay.md

File metadata and controls

57 lines (36 loc) · 1.71 KB
title ms.service api_name ms.assetid ms.date ms.localizationpriority
WeekDay object (Project)
project-server
Project.WeekDay
fc460e89-784b-6764-c22d-e1dcd8a9f297
06/08/2017
medium

WeekDay object (Project)

Represents a weekday in a calendar. The Weekday object is a member of the Weekdays collection.

Using the Weekday Object

Use Weekdays (Index ), whereIndex is the weekday index number, three-letter abbreviation of the day name, or PjWeekday constant, to return a single Weekday object. The following example sets Friday (the sixth day of a week starting on Sunday) as a half-day by setting the start and finish times for the first shift and clearing the values of the second and third shifts.

A much better way to return the same object is to use the predefined constant for Friday instead of the nonintuitive number 6. Thus, the first line of the preceding example would be as follows:

Using the Weekdays Collection

Use the Weekdays property to return a Weekdays collection.

Methods

Name
Default

Properties

Name
Application
Calendar
Count
Index
Name
Parent
Shift1
Shift2
Shift3
Shift4
Shift5
Working

[!includeSupport and feedback]