Easy Tutorial
❮ Vbscript Ref Functions Func Getobject ❯

VBScript WeekdayName Function



The WeekdayName function returns the name of the specified day of the week.

Syntax

Parameter Description
weekday Required. The numeric day of the week.
abbreviate Optional. A Boolean value indicating whether to abbreviate the day name.
firstdayofweek Optional. Specifies the first day of the week. It can take the following values: 0 = vbUseSystemDayOfWeek - Use the Regional Language Support (NLS) API setting<br> 1 = vbSunday - Sunday (default)<br> 2 = vbMonday - Monday<br> 3 = vbTuesday - Tuesday<br> 4 = vbWednesday - Wednesday<br> 5 = vbThursday - Thursday<br> 6 = vbFriday - Friday<br> 7 = vbSaturday - Saturday

Example

Example 1

Get the name of the 3rd day of the week:

The output of the above example:

Example 2

Get the abbreviated name of the 3rd day of the week:

The output of the above example:

Example 3

Get the name of the 3rd day of the week, with Monday being the first day of the week:

The output of the above example:


❮ Vbscript Ref Functions Func Getobject ❯