This function returns an integer that represents the day of the week.
As indicated by the following table, the returned value depends on the workflow system
platform:
Returned Value |
Day |
0 |
Sunday |
1 |
Monday |
2 |
Tuesday |
3 |
Wednesday |
4 |
Thursday |
5 |
Friday |
6 |
Saturday |
The syntax is as follows:
weekday(time_expr)
where
time_expr is an expression of type time.
The following example shows the
systemtime function as input for the
weekday function. If the system time is Tuesday, the
weekday function returns the value
2.
weekday(systemtime())