Returns the number (1...7) of the day of the week. This number is associated with a day of the week (Sunday = 1).
DoW(date-expression | datetime-expression)
Type Returned:
Numeric N(1)
The value 0 is returned if the parameter received is null.
Objects: Procedure, Transaction, Web Panel, Panel, Data Provider
Generators: .NET, .NET Framework, Java, Apple, Android,
Angular
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
TimeZone Support - General Considerations
DayOfWeek method
CDoW function