EndOfISOWeekNo Routines
Returns the End of the Week for the given ISO-8601 WeekNo in the given year.

Unit
QESBPCSDateTime

Overloaded Variants
Function EndOfISOWeekNo(const WeekNo: Integer; const Year: Word): TDateTime;
Function EndOfISOWeekNo(const WeekNo, Year: Integer): TDateTime;

Declaration
Function EndOfISOWeekNo(const WeekNo: Integer; const Year: Word): TDateTime;

Description
Note that the End of the Week is Sunday in ISO-8601.

Parameters
WeekNo Returns the ISO-8601 Week Number in specified Year.
Year Returns 4 digit year to which the Week Number applies.

Category
Date/Time Arithmetic Routines
Week Based Arithmetic Routines

Implementation

function EndOfISOWeekNo (const WeekNo: Integer; const Year: Word): TDateTime;
begin
     Result := StartOfISOWeekNo (WeekNo, Year) + 6;
End;

Declaration
Function EndOfISOWeekNo(const WeekNo, Year: Integer): TDateTime;

Implementation

function EndOfISOWeekNo (const WeekNo, Year: Integer): TDateTime;
begin
     Result := StartOfISOWeekNo (WeekNo, Year) + 6;
End;


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