Promotic
WikipediaLinkedInYoutubeTwitterFacebook

WeekdayName - function of language VBScript

Description:
Returns a string indicating the specified day of the week.
Syntax:
WeekdayName(nWeekday As Integer, [bAbbreviate As Boolean], [nFirstDayOfWeek As Integer]) As String
Calling:
s = WeekdayName(nWeekday[, bAbbreviate[, nFirstDayOfWeek]])
Parameters:
nWeekday(Integer) The numeric designation for the day of the week (1-based index). Numeric value of each day depends on setting of the nFirstDayOfWeek setting.
bAbbreviate[optional] (Boolean) Logical value that indicates if the weekday name is to be abbreviated. If omitted, the default is false, which means that the weekday name is not abbreviated.
nFirstDayOfWeek[optional] (Integer) Numeric value indicating the first day of the week (values see VBScript Date and Time constants). If ommited, vbSunday is assumed.
Example:
Dim sDate
sDate = WeekdayName(2, false, vbMonday) 'sDate contains "Tuesday"
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice