VBScript Weekday Function
Complete VBScript Reference Manual
The Weekday function returns a number representing the day of the week, between 1 and 7.
Syntax
Weekday(date[,firstdayofweek])
| Parameters | Description |
|---|---|
| date | Required. The date expression to be evaluated. |
| firstdayofweek | Optional. Specifies the first day of the week.
The following values can be used: |
Example
Example
The example above produces the following output:
document.write(Weekday("2010-02-16",0) & "
") 3
2
1
7
6
5
Try it »
Complete VBScript Reference Manual