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

Unit
QESBPCSDateTime

Declaration
Function OptDaysLeftInYear(const DT: TDateTime): Integer;

Parameters
DT Date/Time to process.

Category
Date/Time Arithmetic Routines
Year Based Arithmetic Routines

Implementation

function OptDaysLeftInYear (const DT: TDateTime): Integer;
begin
     Result := DaysInYear (DT) - OptDayOfYear (DT);
End;


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