MESCIUS.ActiveReports.Core.Data.VBFunctionLib Assembly / GrapeCity.Enterprise.Data.VisualBasicReplacement Namespace / DateAndTime Class / Weekday Method
Required. Date value for which you want to determine the day of the week.
Optional. A value chosen from the FirstDayOfWeek enumeration that specifies the first day of the week. If not specified, FirstDayOfWeek.Sunday is used.

In This Topic
Weekday Method
In This Topic
Returns an Integer value containing a number representing the day of the week.
Syntax
'Declaration
 
Public Shared Function Weekday( _
   ByVal dateValue As Date, _
   Optional ByVal dayOfWeek As FirstDayOfWeek _
) As Integer
 

Parameters

dateValue
Required. Date value for which you want to determine the day of the week.
dayOfWeek
Optional. A value chosen from the FirstDayOfWeek enumeration that specifies the first day of the week. If not specified, FirstDayOfWeek.Sunday is used.

Return Value

Returns an Integer value containing a number representing the day of the week.
See Also