Date.DayOfWeek() Method

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.

Date Data Type
Getting Started with AL
Developing Extensions