நிரல்கூறு
உள்ளடக்கங்கள்
அகவரிசை 🔎︎

# WeekdayName Function [VBA]

The WeekdayName function returns the weekday name of a specified day of the week.

This function or constant is enabled with the statement Option VBASupport 1 placed before the executable program code in a module.

## தொடரமைப்பு:

    WeekdayName(Weekday as Integer [,Abbreviate as Boolean [,FirstDayofWeek as Integer]])

## திரும்பும் மதிப்பு:

String

## அளவுருக்கள்:

Weekday: 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 constant | Value | Description
vbUseSystemDayOfWeek | 0 | Use National Language Support (NLS) API setting
vbSunday | 1 | Sunday (default)
vbMonday | 2 | Monday
vbTuesday | 3 | Tuesday
vbWednesday | 4 | Wednesday
vbThursday | 5 | Thursday
vbFriday | 6 | Friday
vbSaturday | 7 | Saturday

## பிழையான குறியீடுகள்:

None

## எடுத்துக்காட்டு:

    REM  *****  BASIC  *****

    Option VBASupport 1

    Sub Example_WeekdayName

     Dim tgf as Integer

     tgf = 6

     print tdf &" "& WeekdayName(tgf,False,vbSunday)

    End Sub

தொடர்புடைய தலைப்புகள்

VBA Time and Date functions