title: Mongoose - Search dates stored as strings by date range
body: <p>I have a mongo db with a paymentDate field stored as strings YYYY-MM-DD (I can't change how these are unfortunately), and I need to do a date range search on them.</p>
  
  <p>I found a post suggesting something like this:</p>
  
  <pre><code>coll.find({paymentDate: new RegExp("^(2016-02-18|2016-06-19)", "i")});
  </code></pre>
  
  <p>But I can't seem to get that to work at all.</p>
  
  <p>Any help is appreciated, I've hit a dead end here.</p>