Extract last date of last month

I’m trying to write an expression to get previous month’s last date in bubble backend workflows. I can get the previous month by reducing the month by 1. But I don’t know how to get the last date without having to build if-else blocks and handling leap year case.

Hi there, @vinay2… if I understand your post correctly, the following expression will get the last day of the previous month.

last-day

Hope this helps.

Best…
Mike

Thanks Mike