TLama

Untitled

Mar 1st, 2014
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.29 KB | None | 0 0
  1. procedure GetNextTwoWeekBusinessDates(Start: TDateTime; Dates: TList<TDateTime>);
  2. var
  3.   I: Integer;
  4.   CurDay: TDateTime;
  5. begin
  6.   for I := 0 to 13 do
  7.   begin
  8.     CurDay := IncDay(Start, I);
  9.     if DayOfTheWeek(CurDay) in [DayMonday..DayFriday] then
  10.       Dates.Add(CurDay);
  11.   end;
  12. end;
Advertisement
Add Comment
Please, Sign In to add comment