DateTime Compare

Returns the difference between two date/times expressed in the desired unit of time.

Revision History

1.0.0.3 Initial release

Properties

DateTime1

Type: Object Input
The first date/time to compare.

DateTime2

Type: Object Input
The second date/time to compare.

TimeSpanUnit

Type: List Input
The time unit the difference between the two date/times should be returned in.

  • Milliseconds - Indicates that the time unit to return is milliseconds.
  • Seconds - Indicates that the time unit to return is seconds.
  • Minutes - Indicates that the time unit to return is minutes.
  • Hours - Indicates that the time unit to return is hours.
  • Days - Indicates that the time unit to return is days.

TimeSpan

Type: (Unknown Type) Output
The difference between DateTime1 and DateTime2 expressed in TimeSpanUnit.

Remarks

Use this Node to determine the amount of time between two date/times. If DateTime1 or DateTime2 are left empty, they will default to the current UTC time. This is useful for determining how much time has elapsed from a date/time to the present.

TimeSpan will return a positive value if DateTime2 is greater than DateTime1.