PAC Control calculate the total number of days

How can I use PAC Control to calculate the total number of days from the start date to the end date?

Simplest would be to leverage the DateTimeToNtpTimestamp() built-in commands - put the start date into a NTP int64 and the end date as well, then get the difference and divide by the constant needed to get to days (371,085,174,374,400i64?).

Lot’s of ideas, gotchas and info in this old thread:

Hi Philip, Thanks.
So, use the DateTimeToNtpTimestamp and set 0 = day of the week , 0 = hours, 0 = minutes, 0 = seconds, 0 = milliseconds to get the total days. It’s right?

Sounds right - you will need to test it of course.