CalculateDuration

This task calculates the time between two DateTime variables.

Table 1. Input Properties
Property Type Description
DateTime1 DateTime The first DateTime (beginning of the duration).
DateTime2 DateTime The second DateTime (end of the duration).
  • If either DateTime value is null, then returns null.
  • If DateTime2 is greater than DateTime1, then returned Duration will be positive.
  • If DateTime2 is less than DateTime1, then returned Duration will be negative.