Calculating the last day of the previous month

Variables

Let’s say it’s currently June. {CURRENT_MONTH.END.SUB(1, ‘month’)} will return 2016-05-30, because we’re subtracting one month from 2016-06-30.

To get the last day of the previous month, use the following instead:

{CURRENT_MONTH.START.SUB(1, 'day')}

For more on information see our documetation on relative date variables.


Related Variables Help Articles

See more