Date Difference

Calculate difference between two dates

What It Does

Date Difference calculates the time between two date columns in your chosen unit. Returns a number representing the difference.

How to Use It

Opening the Panel

Click the + button in the toolbar or press the operation picker, then search for "Date Difference". It's in the Date group.

Configuration

FieldTypeRequiredDescription
First dateColumn select (date)YesStart date column
Second dateColumn select (date)YesEnd date column
UnitSelectYesday, week, month, year, hour, minute

SQL Generated

SELECT *, DATEDIFF('day', start_date, end_date) AS duration_days FROM data
Try this operation →

Notes

  • Null values are handled gracefully - operations skip or preserve nulls where appropriate.
  • You can edit any pipeline step by clicking on its card to re-open the panel with the same settings.
  • The SQL preview shows exactly what will execute - inspect it before applying.

Related Operations