I'd like to allow my users to setup a schedule for their events. It could be a single day, or for convenience I'd like to allow them to specify a reoccurring event (similar to an Outlook appointment).
Storing a single day would be pretty easy, but how could I store and query a reoccurring event? I don't need to do times, as I'd just store that separately, and if they needed a different time I'd just have them create another event. So no: Every Wednesday at 5 and Thursday at 3.
Examples:
Every mon, tues, wed, thu, fri, every week
Every wed every week
Every second tuesday of the month
I asked this a few years ago: How can I store and query schedule data? but it was using a SQL solution (SQL Server). I want to use Mongo though so a port is in order.