Functions

WEEKDAY

Returns the weekday of month value of a DateTime.

Syntax

int? WEEKDAY(DateTime? value)

Output

Output Number Weekday
1 Monday
2 Tuesday
3 Wednesday
4 Thursday
5 Friday
6 Saturday
7 Sunday

Example

WEEKDAY(TODAY())

Will return a number value (1-7) which will correspond to a weekday in the above table e.g. '4' which would be Thursday.