how to correctly write a minutesBetween expression?

0
I create 2 date and time variables (they represent the start time of the first created object and the second represent the end time of the last created object), I need to calculate the minutes between them ¿how to properly write this function?
asked
3 answers
3

Hi,

minutesBetween($VarEndTime, $VarStartTime)

answered
0

Hi Constanza,

 

Did you have a look at https://docs.mendix.com/refguide/between-date-function-calls/? The dateTime function can be used to create a new DateTime value. The minutesBetween function takes two date variables as an input (or from an object like $Object/DateAttribute.).

 

A small addition; the type would be a decimal and not a DateTime, as it will calculate the difference.

answered
0

 

I got this error, suggestions?

answered