IDWK
Top  Previous  Next

(IDWK(arg))

Where arg is a value that has either a DATE or DATETIME data type, IDWK returns the day of the week where Monday is 1.

In the following example, the value of vidwk is 3.

SET VAR vidwk = (IDWK('06/16/93'))