Infoveave Data Automation — Date & Time
Select an enrollment date as the start, a graduation date as the end, choose Years, and every row gets its own calculated duration — no DATEDIF formulas, no date subtraction logic, no data type juggling.
Time-based KPIs — customer tenure, contract age, time to delivery, days since last login, equipment service interval — all require measuring the elapsed time between two date points in a dataset. Without a dedicated step, this means writing DATEDIF formulas in spreadsheets, date arithmetic in SQL with unit conversion, or pandas datetime subtraction code that needs to handle multiple input formats. Calculate Date Difference handles the arithmetic in one configuration step, accepting any recognizable date format in both columns, computing the result in the selected unit, and writing it as a numeric column ready for aggregation, comparison, or dashboard KPI display.
Calculate the difference between two date columns in Infoveave in years, months, days, hours, or other time units. Compute customer age, contract duration, days since last activity, delivery lead time, and any time-based KPIs from date column pairs.
Calculate Date Difference is one step inside a multi-step Infoveave workflow. Chain it with other activities — no code, no manual hand-offs.
Build this workflow visually in Infoveave Data Automation — drag, connect, and schedule with no infrastructure setup.
Real scenarios where this transformation saves hours of manual work.
A supply chain team processes order fulfillment records with an order_date column and a delivery_date column. Calculate Date Difference computes the number of days between order and delivery and stores the result in a Lead_Time_Days column. The team can then average lead time by supplier, flag orders where lead time exceeded the SLA threshold, and track lead time trends over time to evaluate supplier performance improvement.
A customer analytics team processes subscriber records with a registration_date column. Calculate Date Difference computes the number of months between registration_date and the current pipeline run date and stores the result in a Tenure_Months column. The churn scoring model uses Tenure_Months alongside engagement metrics — customers with short tenure and low engagement are scored as higher churn risk for retention campaign targeting.
A health operations team processes patient appointment records with a referral_date column and an appointment_date column. Calculate Date Difference computes the number of days between referral and appointment in a Wait_Days column. Appointments where Wait_Days exceeds the care pathway SLA threshold are flagged for clinical review. Average wait time by specialty and region is tracked over time for capacity planning and access improvement reporting.
Input data (left) is transformed using the configuration below. The output table (right) is ready for dashboards or downstream steps.
enrollmentDategraduationDateYearsTotal yearstrueInput Data
| ID | Name | enrollmentDate | graduationDate |
|---|---|---|---|
| 1 | Alice Johnson | 2023-01-15 | 2026-05-15 |
| 2 | Bob Smith | 15-02-2023 | 2027-05-20 |
| 3 | Charlie Brown | 2023.03.10 | 2025-12-30T23:59:59 |
| 4 | Daisy Adams | 2023/04/01 | 2024/06/15 |
| 5 | Ethan Carter | 05-May-2023 | 2024-11-01 |
Output Data
| ID | Name | enrollmentDate | graduationDate | Total years |
|---|---|---|---|---|
| 1 | Alice Johnson | 2023-01-15 | 2026-05-15 | 3.33 |
| 2 | Bob Smith | 15-02-2023 | 2027-05-20 | 4.26 |
| 3 | Charlie Brown | 2023.03.10 | 2025-12-30T23:59:59 | 2.81 |
| 4 | Daisy Adams | 2023/04/01 | 2024/06/15 | 1.21 |
| 5 | Ethan Carter | 05-May-2023 | 2024-11-01 | 1.50 |
Key fields to configure in the Infoveave workflow builder. Full reference available in the documentation.
Start Date
Select the column containing the earlier date — the beginning of the interval. The start date column can contain date strings in any recognizable format. For duration calculations where the start is always before the end, the result is a positive value. If start date is after end date for some rows, the result for those rows is negative.
End Date
Select the column containing the later date — the end of the interval. The end date column is parsed using the same flexible date format recognition as the start date column. For ongoing intervals where the end point is today's date — for example calculating customer tenure up to the current run — the current pipeline run date can serve as the end date.
Difference Units
Choose the unit of time for the output value. Options include Years, Months, Days, Hours, and other supported time units. Years and Months produce decimal values representing the fractional portion of the interval — a 3 year and 4 month interval produces 3.33 years or 40 months. Days and Hours produce integer or decimal counts of the interval in those units. Select the unit that matches the granularity your KPI, SLA, or feature column requires.
Output Column
Name the new column that receives the numeric difference value for each row. Use a descriptive name that makes the unit and interval clear — Lead_Time_Days, Tenure_Months, Wait_Days, Age_Years. The output column is numeric and immediately available for aggregation, comparison, and filter operations in downstream steps.
Everything you need to know about Calculate Date Difference in Infoveave.
Transformations in the same family as Calculate Date Difference, often chained together in the same Infoveave workflow.
Part of Infoveave Data Automation
Calculate Date Difference is one of over 80 transformation activities available inside Infoveave workflows. Chain transformations together — no code, no exports, no waiting for IT.
Ready to see Infoveave in action?