In the moment the header per day is shown as format:
13.03.2024 / 14.03.2024 / 15.03.2024 / .....
What must I do to show it in the format:
Mo 13.03.2024 / Di 14.03.2024 / Mi 15.03.2024 / ...
function WochentagKurz(Datum: TDate): string;
begin
case DayOfWeek(Datum) of
1: Result := 'Mo';
2: Result := 'Di';
3: Result := 'Mi';
4: Result := 'Do';
5: Result := 'Fr';
6: Result := 'Sa';
7: Result := 'So';
else
Result := '';
end;
end;
DBPlanner1.Header.Captions.Clear;
DBPlanner1.Header.Captions.Add('');
for i := 1 to DBPlanner1.Positions do
begin
DBPlanner1.Header.Captions.Add(
FormatDateTime('ddd dd/mm/yy', DBDaySource1.Day + i - 1) + ' --> [KW' + IntToStr(WeekOfTheYear(DBDaySource1.Day + i - 1))+']');
end;