Mastering duration calculations with the DateDiff function
If you need to accurately calculate the gap between two key moments, the DateDiff function in the Expression processor is your best ally. 🔍 What is DateDiff?It’s a date and time function that counts the number of units (days, hours, minutes, etc.) between two datetime expressions. 🛠️ How do you implement it?In your Expression processor, the syntax usually follows this logic:DateDiff(unit, start_date, end_date)Unit: choose what you want to count ("day", "hour", "minute", etc.). Start_date & End_date: the two datetime fields you want to compare. 📖 Concrete exampleImagine you want to calculate the age of an alert in days: