Cannot use date functions on result of date math

I am trying to use a date function end_of_month on the result of a date math calculation. If I can do this in a formula:

__EligibilityRandomDate.beginning_of_month.strftime('%Y-%m-%d')

then why can’t I do this in the next formula?

(__EligibilityRandomDate + months(random(1, 24))).end_of_month.strftime('%Y-%m-%d')

In the preview it gives this error:

...,2016-04-01,error: Access denied to method end_of_month ::Calculations.

This should now be fixed.

1 Like