IsWeekday Function
Returns True if the Date represents Monday through Friday.

Unit
QESBPCSDateTime

Declaration
Function IsWeekday(const DT: TDateTime): Boolean;

Parameters
DT Date to process.

Category
Date/Time Comparison

Implementation

function IsWeekday (const DT: TDateTime): Boolean;
begin
     Result := DayOfWeek (DT) in [2..6];
End;


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