Easy Tutorial
❮ Func Cos Func Hour ❯

VBScript Weekday Function



The Weekday function returns a number representing the day of the week, ranging from 1 to 7.

Syntax

Parameter Description
date Required. The date expression to evaluate.
firstdayofweek Optional. Specifies the first day of the week. It can take the following values: 0 = vbUseSystemDayOfWeek - Uses the National 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

The above example outputs:


❮ Func Cos Func Hour ❯