WhichSemester Function
Returns 1 if Date in Jan through Jun or 2 if Date in Jul through Dec.

Unit
QESBPCSDateTime

Declaration
Function WhichSemester(const DT: TDateTime): Byte;

Parameters
DT Date/Time to process.

Category
Date/Time Arithmetic Routines

Implementation

function WhichSemester (const DT: TDateTime): Byte;
begin
     Result := (Date2Month (DT) - 1) div 6 + 1;
End;


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