yussufawad
asked on
difference between two datetime values?
Hello,
i have two date values of datetime at this format : 2009/07/08 11:20:17
and i wanna sea if difference between 2 values are 1 second or 2 seconds.
how can i check this in delphi?
i have two date values of datetime at this format : 2009/07/08 11:20:17
and i wanna sea if difference between 2 values are 1 second or 2 seconds.
how can i check this in delphi?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you
Add dateutils to your uses list,
then use SecondsBetween
then use SecondsBetween
..
car Seconds : Int64;
..
Seconds := SecondsBetween(Date1,Date2