DateOptions.IsWorkDay Method

Returns a Boolean value that indicates whether the specified day is a work day.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Function IsWorkDay ( _
    iDay As Integer _
) As Boolean
'Usage
Dim instance As DateOptions
Dim iDay As Integer
Dim returnValue As Boolean

returnValue = instance.IsWorkDay(iDay)
public bool IsWorkDay(
    int iDay
)

Parameters

  • iDay
    Type: System.Int32

    A 32-bit integer that represents the day to evaluate, in the range 0 through 6; where 0 indicates Sunday, 1 indicates Monday, and so on.

Return Value

Type: System.Boolean
true if the day is a work day; otherwise, false.

See Also

Reference

DateOptions Class

DateOptions Members

Microsoft.SharePoint.Utilities Namespace