WeekdayName Function [VBA]/text/sbasic/shared/03150001.xhpWeekdayName functionWeekdayName Function [VBA]The WeekdayName function returns the weekday name of a specified day of the week.WeekdayName(Weekday as Integer [,Abbreviate as Boolean [,FirstDayofWeek as Integer]])StringWeekday: Value from 1 to 7, Monday to Sunday, whose Week Day Name need to be calculated.Abbreviate: Optional. A Boolean value that indicates if the weekday name is to be abbreviated.FirstDayofWeek: Optional. Specifies the first day of the week.First day of Week:
Named constantValueDescriptionvbUseSystemDayOfWeek0Use National Language Support (NLS) API settingvbSunday1Sunday (default)vbMonday2MondayvbTuesday3TuesdayvbWednesday4WednesdayvbThursday5ThursdayvbFriday6FridayvbSaturday7Saturday
NoneREM ***** BASIC *****Option VBASupport 1Sub Example_WeekdayName Dim tgf as Integer tgf = 6 print tgf &" "& WeekdayName(tgf,False,vbSunday)End Sub