Returns a integer representing the day of the week.
Weekday(date As Date, [firstdayofweek As Integer]) As Integer
n = Weekday(date, firstdayofweek)
|date||(Date) Expression that can represent a date|
|firstdayofweek||[optional] (Integer) A constant that specifies the first day of the week (values see VBScript Date and Time constants). If omitted, vbSunday is assumed.|
tDate = #October 19, 2016#
nWeekday = Weekday(tDate) 'nWeekDay contains 6 because tDate represents a Friday