See the documentation here: https://docs.mendix.com/refguide/xpath-keywords-and-system-variables
You can use [%BeginOfCurrentMonth%]
and use something like:
[createdDate < '[%BeginOfCurrentDay%]- 6 * [MonthLength]']
Regards,
Ronald
Another option (since you're in a microflow), would be to create a variable with the name of the current month. You could use this as the expression:
formatDateTime('[%CurrentDateTime%]','MMMM')
Then, your xpath could be:
[month = $monthVariable]
Thanks Eric,
But its giving error
pls see this.
This doesn’t work in my case :
formatDateTime('[%CurrentDateTime%]','MMMM')
I wrote this and put in a string variable :
formatDateTime([%CurrentDateTime%],'MMMM')
Worked for me, couldn't cut and paste, had to type it in or it was red errored out...thanks!