Topic: [SOLVED] Difference between 2 dates + time
Hello Dimtry,
I've searched the forum and found some partial answers to my upcoming question, but I was unable to completely solve my problem.
I would like to make calculations on dates.
Getting the elapsed time bewteen two dates is easy with
SecondsBetween
MinutesBetween
HoursBetween
DaysBetween
and so on
But that is when you only have a date picker.
FIRST QUESTION : can I have a datepicker with date AND time ?
I tried something like 'yyyy-mm-dd hh:mm' in the datepicker format and it works but... here comes the second question
SECOND QUESTION : how do you make calculation on those datepickers with date AND time ?
I've tried
SecondsBetween(Form1.beginhour.DateTime,Form1.endhour.DateTime)
with beginhour 2015-03-13 10:30 and endhour 2015-03-13 11:30 and the result should be 3600
But it returns 0.
Did I miss something ? Is the format wrong ? Or is it just impossible at the moment maybe ?
Thanks in advance
Cheers
Math
PS : this is not to calculate the age of a person
Each time I get a divorce, I keep the house
Zaza Gabor