weekdayOf()

The system function DateTimeLib.weekdayOf returns a positive integer that represents a day of the week, as derived from a variable of type TIMESTAMP. The number 0 represents Sunday, 1 represents Monday, and so on.

  DateTimeLib.weekdayOf(aTimeStamp TIMESTAMP in)
  returns (result INT)
result
A positive integer from 0 to 6.
aTimeStamp
The TIMESTAMP variable from which the day is derived.

Related concepts
Syntax diagram for EGL functions

Related reference
DATE
EGL library DateTimeLib

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.