ActiveReports 12
Weekday Method

GrapeCity.ActiveReports.v12 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.
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
public static int Weekday( 
   DateTime dateValue,
   FirstDayOfWeek dayOfWeek
)

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

Reference

DateAndTime Class
DateAndTime Members