Not able to find 'addMonth' function when creating custom function for buttons

Not able to find 'addMonth' function when creating custom function for buttons

Not able to find 'addMonth' function

Hi,

I'm getting this error when trying to use the addMonth function when creting a custom function for a button in potentials.

Anyone come across this before?

Regards
Michael

Not able to find 'addMonth' function