WeekDayName()

Top  Previous  Next

WeekdayName() - Creates a string indicating the specified weekday

Description

The WeekdayName() function returns a string representation of the name for the specified weekday, e.g. Monday ... Sunday.

WeekdayName(weekday[, abbreviate[, firstdayofweek]])

Parameters
The weekday parameter is the numeric representation for the weekday. Numeric value of each day depends on setting of the firstdayofweek setting.

The optional abbreviate parameter is a boolean value (True or False) indicating whether the weekday name should be abbreviated.

The optional firstdayofweek parameter specifies which day should be considered the first day of the week according to [id=44#days]this table[/id].

Example

MyDate = WeekdayName(2) 'returns Monday

 

MyDate = WeekdayName(2, True, 2) 'returns Tue