VBScript WeekdayName Function
Complete VBScript Reference Manual
The WeekdayName function returns the weekday name of a specified day of the week.
Syntax
WeekdayName(weekday[,abbreviate[,firstdayofweek]])
| Parameters | Description |
|---|---|
| weekday | Required. The number of the day of the week. |
| abbreviate | Optional. A Boolean value indicating whether to abbreviate the weekday name. |
| firstdayofweek | Optional. Specifies the first day of the week.
The following values can be used: |
Example
Example 1
Get the name of the 3rd day of the week:
The example above produces the following output:
Tuesday
Try it »
Example 2
Get the abbreviation of the 3rd day of the week:
The example above produces the following output:
Tue
Try it »
Example 3
Get the name of the 3rd day of the week, with Monday as the first day:
The example above produces the following output:
Wednesday
Try it »
Complete VBScript Reference Manual