Skip to main content

Overview

The difference-between-dates transformation calculates the difference between two dates.

Syntax

difference-between-dates(<variable 1>, <variable 2>, unit="days")

Parameters

ParameterTypeRequiredDefaultDescription
variable 1dateYes-First date
variable 2dateYes-Second date
unitstringNo"days"Unit of difference: "days", "hours", "minutes", "seconds", "months", "years"

Examples

difference-between-dates(<variable 1>, <variable 2>, unit="days")
difference-between-dates(<variable 1>, <variable 2>, unit="hours")