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?
yussufawadAsked:
Who is Participating?
 
SteveBayCommented:
Edit:
car Seconds : Int64;
Should be
var Seconds : Int64;
0
 
SteveBayCommented:
uses DateUtils;
..
car Seconds : Int64;
..
Seconds := SecondsBetween(Date1,Date2);
0
 
yussufawadAuthor Commented:
thank you
0
 
rfwoolfCommented:
Add dateutils to your uses list,
then use SecondsBetween
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.