MONDAY
MONDAY = 1
Example
function IsMonday(const Value: TDateTime): Boolean;
begin
Result := DayOfTheWeek(Value) = MONDAY;
end;
Usage
Represents Monday as 1 in Velox's Monday-first weekday numbering.
Additional Technical Info
The Velox date-tools importer registers MONDAY as a signed LongInt. It begins the fixed Monday-first sequence used by DayOfTheWeek and ISO-style weekday fields.
SysUtils DayOfWeek instead represents Monday as 2, because it begins with Sunday=1. Use the constant only with a field/function whose numbering contract is Monday-first; never infer compatibility merely from a 1..7 range.
The value is independent of locale preferences about the first displayed day of a calendar. The source date retains its existing local/UTC interpretation. The example is source-reviewed only; no weekday calculation was executed.
External references
- Embarcadero DayOfTheWeek - exact Monday-first numbering.
- Free Pascal DayOfTheWeek - compatible numbering.