Help with transforming the end date of a month

Options
If I'm working with the last days of the month, say January 31, for example, and want to now get the next last day of the month, my approach has been to use the transform_timestamp filter, and use +1 month.

The problem is that this returns March 3rd, not February 28 as I would have expected (and need).

How would I solve this, what can I do to get the last day of the next month, regardless of how many days the month has ??

Comments