Share via


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)

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