I tried to get the month with getMonth() but the function inside Open Foris Arena does not exist.
Accepted answer
You can get the month our from a date attribute as follows: date_attribute_name.month
This is documented in the Arena User Manual chapter 12 (Examples of expressions in Open Foris Arena). There is the link to this text.