WeekdayName Function

Syntax:

WeekdayName(NumZ{day}[, CondZ{abbrev}])

Group:

Time/Date

Description: 

Returns the localized name of the weekday.

Parameters:

Parameter

Description

day

Return the localized name of this weekday. (1-7)

abbrev

If this conditional value is True then return the abbreviated form of the weekday name.

Example:

Sub Main
  Debug.Print WeekdayName(1) 'Sunday
  Debug.Print WeekdayName(Weekday(Now))
End
Sub

See Also:

Weekday( )