Question:
How can I obtain the difference between the current date/time and the date/time input in a setpoint, in minutes?
Solution:
To do so, you can use the following script:
Dim aux, aux1
aux = Now – Screen.Item(“Texto12”).Value
aux1 = aux * 24 * 60
MsgBox aux1
Where:
- “Screen.Item(“Texto12″).Value” stands for the setpoint where date/time is input;
- “aux1” is the variable containing the amount of minutes in the difference between current time and the previous value.