weekdayOf()
The dateTimeLib.weekdayOf() system function returns a positive integer that represents a day of the week, as derived from a TIMESTAMP variable. The number zero (0) represents Sunday, one (1) represents Monday, and so on.
Syntax
dateTimeLib.weekdayOf(aTimeStamp TIMESTAMP? in)
returns (result INT?)
- aTimeStamp
- The variable from which the day of the week is derived.
- result
- A positive integer from 0 to 6. If aTimeStamp is null, the function returns a null value.