Home > Language Reference > Date/Time Functions > WeekDay

WeekDay

The WeekDay function returns the weekday.

Syntax

var=WeekDay()

Parameter

None.

Return value

var, integer, weekday for today's date. The possible values are:

 return value  Description
 1  Sunday
 2      Monday
 3  Tuesday
 4  Wednesday
 5  Thursday
 6     Friday
 7  Saturday

See also

Date$
DateBetween
DateToDate$
Day$
Hour$
Hundreds
Min$
Month$
Sec$
Time$
Year$

Example

day=WeekDay()