SameDateTime Function
Returns True if they are both the same Date/Time.

Unit
QESBPCSDateTime

Declaration
Function SameDateTime(const DT1, DT2: TDateTime): Boolean;

Description
Date/Times are considered the same if they are less then 1 millisecond apart.

Parameters
DT1 First Date/Time to process.
DT2 Second Date/Time to process.

Category
Date/Time Comparison

Implementation

function SameDateTime (const DT1, DT2: TDateTime): Boolean;
begin
     Result := abs (DT1 - DT2) < OneDTMillisecond;
End;


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