OptDayOfYear Function
Returns the Day Number in the Year represented by the given Date.

Unit
QESBPCSDateTime

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

Parameters
DT Date/Time to process.

Category
Date/Time Arithmetic Routines
Year Based Arithmetic Routines

Implementation

function OptDayOfYear (const DT: TDateTime): Integer;
begin
     Result := Trunc (DT) - Trunc (OptEncodeDateI (OptDate2Year (DT), 1, 1)) + 1;
End;


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