EndOfWeek Function
Returns the End of the week containing given Date/Time, assumes that the End of the Week is Saturday - Time portion preserved.

Unit
QESBPCSDateTime

Declaration
Function EndOfWeek(const DT: TDateTime): TDateTime;

Parameters
DT Date/Time to process.

Category
Date/Time Arithmetic Routines
Week Based Arithmetic Routines

Implementation

function EndOfWeek (const DT: TDateTime): TDateTime;
begin
     Result := DT - DayOfWeek (DT) + 7;
End;


HTML generated by Time2HELP
http://www.time2help.com