StartOfISOWeek Function
Returns the Start of the week containing given Date/Time, assumes that the Start of the Week is Monday according to ISO-8601 - Time portion preserved.

Unit
QESBPCSDateTime

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

Parameters
DT Date to process.

Category
Date/Time Arithmetic Routines
Week Based Arithmetic Routines

Implementation

function StartOfISOWeek (const DT: TDateTime): TDateTime;
begin
     Result := DT - ISODayOfWeek (DT) + 1;
End;


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