This function will return the day of the week as a number.
|1 f/c/e||The date value to use, must be of D type. Default value is the current date (date())|
RETURN TYPE - I
The number range returned is from 1 through 7, Sunday through Saturday.
define x type i
x = DOM()
(* if the date was 09/30/00 then
x = 7 (Saturday) *)