Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Version: Available or changed with runtime version 14.0.
Gets the day of the week.
Syntax
DayOfWeek := Date.DayOfWeek()
Note
This method can be invoked using property access syntax.
Parameters
Date
Type: Date
An instance of the Date data type.
Return Value
DayOfWeek
Type: Integer
The day of week.
Remarks
This method always returns 1 for Monday and 7 for Sunday, regardless of the system's regional settings.
Related information
Date Data Type
Getting Started with AL
Developing Extensions