Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

WeekDay

  • Last UpdatedJul 18, 2023
  • 1 minute read

Calculates the weekday value of the given date argument passed to the function. Date values in VBA are evaluated using the Gregorian Calendar.

Syntax

WeekDay(Date)

Date:

A string or expression that can represent a date value. This includes any combination of date literals, numbers that look like dates, strings that look like dates, and dates from functions.

Return Value

Returns an integer between the range of 1-7 inclusive representing the whole number for the weekday:

Return Value

Description

1

Sunday

2

Monday

3

Tuesday

4

Wednesday

5

Thursday

6

Friday

7

Saturday

Date | Year| Month | Day

Example

Dim varMyBDate, varMyWeekDay
varMyBDate = #8/07/1958#
varMyWeekDay = WeekDay(varMyBDate)
' returns 3 (Tuesday)

In This Topic
TitleResults for “How to create a CRG?”Also Available in