YouTip LogoYouTip

Func Weekdayname

# VBScript WeekdayName Function * * Complete VBScript Reference Manual](#) * * * The WeekdayName function returns the weekday name for a specified day of the week. ### Syntax WeekdayName(weekday[,abbreviate[,firstdayofweek]]) | Parameter | Description | | :--- | :--- | | weekday | Required. A number representing a day of the week. | | abbreviate | Optional. A Boolean value indicating if the weekday name is abbreviated. | | firstdayofweek | Optional. Specifies the first day of the week. Can use the following values: * 0 = vbUseSystemDayOfWeek - Use National Language Support (NLS) API setting * 1 = vbSunday - Sunday (default) * 2 = vbMonday - Monday * 3 = vbTuesday - Tuesday * 4 = vbWednesday - Wednesday * 5 = vbThursday - Thursday * 6 = vbFriday - Friday * 7 = vbSaturday - Saturday | ## Examples ## Example 1 Get the name for the 3rd day of the week: document.write(WeekdayName(3)) The output of the above example: Tuesday [Try it Β»](#) ## Example 2 Get the abbreviation for the 3rd day of the week: document.write(WeekdayName(3,True)) The output of the above example: Tue [Try it Β»](#) ## Example 3 Get the name for the 3rd day of the week, with the first day of the week set to Monday: document.write(WeekdayName(3,False,2)) The output of the above example: Wednesday [Try it Β»](#) * * Complete VBScript Reference Manual](#)
← Func AbsFunc Weekday β†’