WeekDay
%WeekDay function
Function
The function returns the time component - weekday - of given absolute time.
Declaration
INT %WeekDay(
TIME in Arg,
TEXT in timeZone := %GetCurrentTimeZone()
)Parameters
Arg | Function argument. |
timeZone |
Note
The following values are assigned to the days of the week:
Monday = 1
Tuesday = 2
Wednesday = 3
Thursday = 4
Friday = 5
Saturday = 6
Sunday = 0
Example
%WeekDay(SysTime) ; the result is the current weekday of the system timeRelated pages: