I posted yesterday about using VTL to find the first Monday of the next month. A working solution was provided by @SanfordWhiteman in Velocitip: Find the first 𝑵-day of next month - Marketing Nation (marketo.com)
I learned I also need to go one step further -- Part 2 of our required solution is to get the date prior to the first N-day of the next month. For example, we need to find the day before the first Monday of the following month, which could be Sunday the 31st in the current month. Is there a similar solution we can implement here?
Solved! Go to Solution.
Step back one day from $nextMonth.
#set( $ret = $nextMonth.add($calConst.DATE, -1) )