title: JavaScript: Select elements with data value in range of X and Y
body: <p>I am creating a calendar and need to be able to select (to show/hide) <code>div.event</code> who's <code>data-dates</code> (which may be string or array, depending on number of days the event appears in) by determining if any of the unix timestamp dates stored there are such that they fall between the unix timestamps which represent the start and end of the currently chosen month. So for example:</p>
  
  <p>It is April 2013, so I wish to see only events that occur in April (<code>1364774400</code> [April 1st, midnight] and <code>1367366399</code> [April 30th, 23:59:59]).</p>
  
  <p>I have many <code>event</code> divs. They look something like this:</p>
  
  <pre><code>&lt;div class="event" data-dates="[1367539200, 1367625600]"&gt;...&lt;/div&gt;
  &lt;div class="event" data-dates="[1364947200]"&gt;...&lt;/div&gt;
  </code></pre>
  
  <p>Let's assume one or more of those have timestamps that fall sometime in April 2013. How do I select them?</p>