Did you had a look at this forum post https://forum.mendix.com/link/questions/100641
[EndDate < '[%CurrentDateTime%] + 1 * [%DayLength%]']
Hope this helps!
You're looking for the token [%DayLength%].
Please see examples at the bottom of https://docs.mendix.com/refguide/xpath-keywords-and-system-variables
I think this would work:
[EndDate < ('[%CurrentDateTime%]' + 1* [%DayLength%])]
But you could also use [EndDate < '[%EndOfCurrentDay%]'
Unfortunately, you can’t add days to EndDate (since its not a system variable). However, I think you can meet your requirement by doing the following:
[EndDate < ('[%CurrentDateTime%]' - 1* [%DayLength%])]
I think subtracting 1 day from CurrentDateTime is equivalent to adding 1 day to EndDate.
One other thing to be aware of: CurrentDateTime (and EndDate) contain datetime values. So the value of EndDate might be July 7 @ 10:30AM even though you may only see the July 7 when its displayed on a page. This may lead to unexpected results if you don’t take it into account.
Hope that helps,