Data Type: Variant
Any valid date expression.
Data Type: Integer
Integer specifying the first day of the week.
Determines the day of the week of a given date.
The following intrinsic VBScript constants determine the value returned by the Weekday function:
Null, the Weekday
function also returns
The following table describes the settings for the
Use the NLS API setting
If you specify a
argument, the function returns the day of the week relative to
firstdayofweek. For instance, if you
set the value of
vbMonday (2), indicating that
Monday is the first day of the week, and attempt to determine
the day of the week on which October 1, 1996, falls, the
function returns a 2. That’s because October 1, 1996, is a
Tuesday, the second day of a week whose first day is
Because the function’s return value is relative to
firstdayofweek, using the day of the week constants to interpret the function’s return value ...