LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how many days ?

Solved!
Go to solution

Hi,

I want to desing a VI that can calculate how many days there is in 3 or 5 years from now taking the consideration of leap year.

Thanks,

 

0 Kudos
Message 1 of 2
(2,079 Views)
Solution
Accepted by topic author dphan128

Assuming you are using timestamps, you can subtract two of them to get the difference in seconds.  Use the Quotient & Remainder function to divide by 86400 (seconds/day) and the integer output is the number of days.

Message 2 of 2
(2,073 Views)