LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

date Difference

I have 2 Timestamp control. I am using those timestamp controls for receiving dates only(say From Date and To Date).I want to get difference days (ToDate - From Date) in integer. If I use minus control for finding difference, i am getting the difference in seconds. The seconds are also not in the multiples of 86400(ie. Per day 86400 seconds).Please suggest.
0 Kudos
Message 1 of 3
(2,615 Views)
If you want the difference in days, just use a
Quotient&Remainder and divide your seconds by 86400.
Then you get full days and remaining seconds...

Best regards
Gerd
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,615 Views)
Well, you got the difference in seconds, divides the difference with 86400, then you get the days.

Joe
0 Kudos
Message 3 of 3
(2,615 Views)