SOLVED

Re: Date prior to first N-day of next month

Go to solution
nwarr
Level 2

Date prior to first N-day of next month

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?

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Date prior to first N-day of next month

Step back one day from $nextMonth.

#set( $ret = $nextMonth.add($calConst.DATE, -1) )

 

View solution in original post

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Date prior to first N-day of next month

Step back one day from $nextMonth.

#set( $ret = $nextMonth.add($calConst.DATE, -1) )