Name
WeekdayName Function — Microsoft.VisualBasic.DateAndTime
Synopsis
WeekdayName(Weekday
, [abbreviate
[,FirstDayOfWeekValue
]])
Weekday
required; LongThe ordinal number of the required weekday, from 1 to 7
abbreviate
optional; BooleanSpecifies whether to return the full day name or an abbreviation
FirstDayOfWeekValue
optional;FirstDayOfWeek
constantMember of the
FirstDayOfWeek
enum indicating the first day of the week
Return Value
A String
Description
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 abbreviate
is
False
. For a list of the members of the
FirstDayOfWeek enumeration, see the “Weekday
Function” entry. The default value of
FirstDayOfWeekValue is FirstDayOfWeek.Monday.
Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.