Forum Discussion
tstack
7 years agoFormer Employee
Note that you can avoid the string manipulation and use the withDayOfMonth() method to replace the current day with 1, like so:
Date.now().plusMonths(1).withDayOfMonth(1).minusDays(1)
Note that you can avoid the string manipulation and use the withDayOfMonth() method to replace the current day with 1, like so:
Date.now().plusMonths(1).withDayOfMonth(1).minusDays(1)