Dynamic Month

0
Hi, How to make current month dynamic currently it like this- [month='may']
asked
5 answers
3

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

 

answered
0

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]
answered
0

Thanks Eric,

But its giving error

pls see this.

 

answered
0

This doesn’t work in my case : 

formatDateTime('[%CurrentDateTime%]','MMMM')

I wrote this and put in a string variable :

formatDateTime([%CurrentDateTime%],'MMMM')

 

 

answered
0

Worked for me, couldn't cut and paste, had to type it in or it was red errored out...thanks!

answered