Filter last month dates by xPath.

0
I have an entity with createdDate argument. Is it possible to filter out only objects with dates of previous month by xPath constraint? For example for current month this works: ‘[createdDate > '[%BeginOfCurrentMonth%]']’, but I don’t know how to select previous month.
asked
1 answers
3

Yes, in XPath you can use the token [%MonthLength%], see this documentation page. Note that the actual token is not present in the documentation, but the modeller accepts it anyway.

 

You expression could look something like:

 

[createdDate >= '[%BeginOfCurrentMonthUTC%] - [%MonthLength%]']
[createdDate <= '[%EndOfCurrentMonthUTC%] - [%MonthLength%]']

 

answered