How to convert days to integer

How to convert the above expression in to integer? I want to perform certain mathematical operations on it but can't do since it is in day format.

Regards

Sahil

Solution

Hi Sahil,

The Day() builtin function does already return a value in data type Integer.

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Built-in_Functions/Date_and_Time#Day 

Regards,

Daniel

Solution

Hi Sahil,

Instead of converting to integer, you use the built-in Function DiffDays to get the difference between two dates.

Hi Sahil,

You need to use DiffDays() function

It will return difference of days in integer.


Regards

Rahul Sahu

Thanks all of you.