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 under the hood
SELECT *, DATEDIFF('day', start_date, end_date) AS duration_days FROM data
Try this operation →

Related Operations