How to get the difference between two dates

Is there any convenient ways to find out the difference between two dates? 

Solution

hey, you can use this built-in logic function for this problem.

see this documentation for more: https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Built-in_Functions/Date_and_Time#DiffDays

Solution

You may try the build-in function 

such as

DiffDays(dt1, dt2)

example: 

DiffDays(#1982-05-19#, #1982-05-21#)

output\: 2

In the build in functions