WorksheetFunction.Weekday (Excel)

Returns the day of the week corresponding to a date. The day is given as an integer, ranging from 1 (Sunday) to 7 (Saturday), by default.

The following table represents possible values for Arg2.

Weekday (Arg1, Arg2)


Dim dblWeekday As Double
dblWeekday = WorksheetFunction.Weekday(Arg1:=)

Arguments

Arg1, Arg2

Arg1 - Serial_number - a sequential number that represents the date of the day you are trying to find. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text

Arg2 - Return_type - a number that determines the type of return value