FRIDAY
FRIDAY = 5
Example
function IsFriday(const Value: TDateTime): Boolean;
begin
Result := DayOfTheWeek(Value) = FRIDAY;
end;
Usage
Represents Friday as 5 in Velox's Monday-first weekday numbering.
Additional Technical Info
The Velox date-tools importer registers FRIDAY as a signed LongInt. It belongs to the fixed Monday-first sequence Monday=1 through Sunday=7 and matches DayOfTheWeek.
Do not compare it directly with SysUtils DayOfWeek: that function represents Friday as 6 because its sequence starts with Sunday=1. Both results are in 1..7, so a mismatch will not produce a range error.
The constant contains no date, timezone or locale. DayOfTheWeek evaluates the date as encoded without converting local/UTC basis. The example is source-reviewed only; no weekday calculation was executed.
External references
- Embarcadero DayOfTheWeek - Monday-first weekday numbering.
- Free Pascal DayOfTheWeek - compatible numbering.