To return the number (1...7) of the day of the week. This number is associated with a day of the week (Sunday = 1).
Syntax
Dow(date-expression | datetime-expression)
Type Returned:
Numeric N(1)
The value 0 is returned if the parameter received is null.
Example
You only want to obtain the today's day from a datetime (or date) variable or attribute.
&DayNbr = Dow(Now())
// Now = 11/24/2010 02:42 PM
// &DayNbr = 4
Scope
Objects Procedure object, Transaction object, Web Panel object
See also
TimeZone Support - General Considerations
DayOfWeek method
CDoW function
|