Weekday (function)

<< Click to Display Table of Contents >>

Weekday (function)

Weekday(Expression)

Returns the weekday of the given date.

The result is an integer value between 1 and 7, where 1=Sunday, 2=Monday, ... 7=Saturday.

Expression is a numeric or string expression which represents a date.

See also: Date, Day, Hour, Minute, Month, Now, Second, Time, Year

Example:

Sub Main

 Print Weekday(Date)

End Sub