Returns the Exact Number of Weeks between DT2 and DT1.Unit
QESBPCSDateTime
Declaration
Function ExactWeeksApart(const DT1, DT2: TDateTime): Extended;
Description
If result is 0 then they are in the same Day, if result is negative then DT2 occurs before DT1.
| DT1 | First Date/Time to process. | 
| DT2 | Second Date/Time to process. | 
Category
Date/Time Arithmetic Routines
Week Based Arithmetic Routines
Implementation
 
  | function ExactWeeksApart (const DT1, DT2: TDateTime): Extended;
begin
     Result := DaysApart (DT1, DT2) / 7;
End; | 
| HTML generated by Time2HELP | 
http://www.time2help.com