Official Content

Returns 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.

Scope

Objects: Procedure, Transaction, Web PanelPanel, Data Provider
Generators: .NET, .NET Framework, Java, Apple, Android,
Angular

Samples

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

See Also

TimeZone Support - General Considerations
DayOfWeek method
CDoW function

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant