DaysLeftInYear Function
Returns the number of days left in the Year represented by the given Date.

Unit
QESBPCSDateTime

Declaration
Function DaysLeftInYear(const DT: TDateTime): Word;

Description
For a faster Integer Routine see OptDaysLeftInYear.

Parameters
DT Date/Time to process.

Category
Date/Time Arithmetic Routines
Year Based Arithmetic Routines

Implementation

function DaysLeftInYear (const DT: TDateTime): Word;
begin
     Result := DaysInYear (DT) - DayOfYear (DT);
End;


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