Link to home
Start Free TrialLog in
Avatar of yussufawad
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?
Avatar of SteveBay
SteveBay
Flag of United States of America image

uses DateUtils;
..
car Seconds : Int64;
..
Seconds := SecondsBetween(Date1,Date2);
ASKER CERTIFIED SOLUTION
Avatar of SteveBay
SteveBay
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yussufawad
yussufawad

ASKER

thank you
Add dateutils to your uses list,
then use SecondsBetween