The ordinal number of the required weekday, from 1 to 7
Specifies whether to return the full day name or an abbreviation
Member of the
FirstDayOfWeek enum indicating the
first day of the week
Returns the name of the day
Weekday must be a number between 1 and 7,
or the function generates an ArgumentException error.
The default value of
For a list of the members of the FirstDayOfWeek enumeration, see the Weekday Function entry.
The default value of FirstDayOfWeekValue is FirstDayOfWeek.Monday.
Weekday is an integer, to determine
the name of the day of a particular date, combine
WeekDayName with a call to the
WeekDay function, as the following code fragment
sDay = WeekDayName(Weekday(dDate, iFirstDay), _ bFullName, iFirstDay)
Note that the value of the
argument must be the same in the calls to both functions for
WeekdayName to return an accurate result.
Unlike the Weekday function, the
WeekdayName function behaves predictably. For
example, if you ask for the name of the first day of the week when
the week starts on Monday, the function returns
Monday. If you ask for the fifth day of the week for a week that starts on ...