using date subtraction in Xpath

0
I am working on an form that needs to display all tasks that have been closed in the last 30 days. This means I only want to see tasks that have been closed in the past 30 days. How can I subtract 30 days from the current Date in Xpath? sample Xpath: [Status != 'closed'][DueDate='[%CurrentDateTime%-30days]
asked
1 answers
4

Hey Prateek,

You can use the addDays() function,

You can visit it’s documentation by clicking here

addDays([%CurrentDateTime%],-30)

So, in the Xpath, you can use 

[DueDate>=addDays([%CurrentDateTime%],-30)]

 

Let me know, if you face any issues,

Hope it helps!!

answered