Hi, I'm trying to calculate the amount of hours someone has worked between two dates . I'm calculating it via a microflow using the between dates function in an expression: hoursBetween(dateTime($Afspraak/BeginDatum), dateTime($Afspraak/EindDatum)) I now get two errors saying : "The function 'dateTime' takes one to seven literal Integers." I think it means that the function dateTime doesn't support non-literals, but this doesn't make sense to me, since the hoursBetween function would have no purpose. I'm quite new to mendix, so I'm probably making a small mistake. Abel
asked
Abel Willems
2 answers
1
Hi Abel,
If BeginDatum and EinDatum are data types of data and time then change your expression to