title: How can I store and query recurring date events using mongo?
body: <p>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).</p>
  
  <p>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.</p>
  
  <p>Examples:</p>
  
  <p>Every mon, tues, wed, thu, fri, every week</p>
  
  <p>Every wed every week</p>
  
  <p>Every second tuesday of the month</p>
  
  <p>I asked this a few years ago: <a href="https://stackoverflow.com/questions/1804613/how-can-i-store-and-query-schedule-data">How can I store and query schedule data?</a> but it was using a SQL solution (SQL Server). I want to use Mongo though so a port is in order.</p>