Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Weekday - function of language VBScript

Description:
Returns a integer representing the day of the week.
Syntax:
Weekday(date As Date, [firstdayofweek As Integer]) As Integer
Calling:
n = Weekday(date, firstdayofweek)
Parameters:
date(Date) Expression that can represent a date
firstdayofweek[optional] (Integer) A constant that specifies the first day of the week (values see VBScript Date and Time constants). If omitted, vbSunday is assumed.
Note:
The function can return any of these values (values see VBScript Date and Time constants).
Example:
Dim tDate, nWeekday
tDate = #October 19, 2016#
nWeekday = Weekday(tDate) 'nWeekDay contains 6 because tDate represents a Friday
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice