I am trying to create a feature where I can transfer money by scheduling, so for that, I need a recurring option for the month and weak, And the problem that I face is, that if a user chooses the 31st of a month every month doesn't have the 31st, so the transaction should happen in that particular month's end date.
for example: If I start recurring date is 31st May 2022 no of transactions: 3 Current Output: Dates of transactions => 1st July 2022, 31st July 2022, 31st August 2022, Correct Output: 30th June 2022, 31st July 2022, 31st August 2022,
Maybe something like I proposed here:
This proposition is based on this code that I created a PR for:
Using the time package you could create a similar code for weeks.