I am trying to create an errand reminder. The idea is the user can create a reminder, and they can set the frequency of the reminder. They can choose to be reminded daily, weekly or monthly. Now if they choose weekly, I only need to know the day of week they want to be reminded and all is well. The issue however is monthly. What if the user wants to be reminded every 31st of the month? Some months obviously don't have that, and being that the reminder goes out every month, I have no reason to keep track of the month itself.
I am really not sure how to about this. If it matters, this is a node.js app.