IsWeekend Function
Returns True if the Date represents Saturday or Sunday.

Unit
QESBPCSDateTime

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

Parameters
DT Date to process.

Category
Date/Time Comparison

Implementation

function IsWeekend (const DT: TDateTime): Boolean;
begin
     Result := DayOfWeek (DT) in [1, 7];
End;


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