WeekDayName

concerns

The WeekDayName function returns a string that specifies the specified day of the week.

 

Syntax

WeekDayName(Weekday [, Shorten [, FirstWeekday]])

Return value

Type

Description

String

The weekday name of the specified day of the week

Parameter

Use

Name

Type

Passing

Description

Required

Weekday

Long

ByVal

1 – 7

Optional

Shorten

Boolean

ByVal

Do you want to abbreviate the weekday name

Optional

FirstWeekday

Long

ByVal

The first day of the week

The WeekDay parameter specifies the numeric representation of the day of the week. The numeric value of each day depends on the FirstWeekday setting.

You can use the Shorten parameter to determine whether the name of the day of the week should be abbreviated. If Shorten is omitted, the name of the day of the week is not abbreviated (default: FALSE).

FirstWeekday can have the following values:

 

FirstWeekday

Description

1

Sunday (= Default value)

2

Monday

3

Tuesday

4

Wednesday

5

Thursday

6

Friday

7

Saturday