सामाग्री

# WeekdayName Function [VBA]

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

यस k, कार्य वा वस्तुले प्रयोगयोग्य कार्यक्रम कोडमा एक मोड्युलमा प्रयोग गरिएको Option VBASupport 1 विधानसहितका अगाडि सक्षम गरिएको छ।

### Syntax:

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

### Return value:

String

### Parameters:

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:

नामाङ्कित अचल | मान | वर्णन
--- | --- | ---
vbUseSystemDayOfWeek | 0 | Use National Language Support (NLS) API setting
vbSunday | 1 | Sunday (default)
vbMonday | 2 | सोमबार
vbTuesday | 3 | मंगलबार
vbWednesday | 4 | बुधबार
vbThursday | 5 | विहीवार
vbFriday | 6 | शुक्रबार
vbSaturday | 7 | शनिबार

### त्रुटि सङ्केतहरू

कुनै पनि होइन

### Example:

            REM  *****  BASIC  *****
            Option VBASupport 1
            Sub Example_WeekdayName
             Dim tgf as Integer
             tgf = 6
             print tgf &" "& WeekdayName(tgf,False,vbSunday)
            End Sub

सम्बन्धित शीर्षक

VBA Time and Date functions