Xpath in Retrieve

1
Iam trying to create xpath in retrieve activity for calculating days between two attributes  and comparing it with a value but i cannot achieve it  ['[%CurrentDateTime%]'-ECCContractEndDate=180 days]
asked
3 answers
1

Hi Nithya,

I think you need to create a variable first and then compare with that value. See this forum question for the approach https://forum.mendix.com/link/questions/6256 .

I hope this helps.

Michiel

answered
0

Consider using the DaysBetween function and store this in a variable to determine the amount of days between 2 dates – https://docs.mendix.com/refguide/between-date-function-calls/

answered
-1

Hello Nithya, 

You could try the function 

Day-from-DateTime

https://docs.mendix.com/refguide/xpath-day-from-datetime/

answered