title: How to filter an array of objects based on whether the range between their date properties includes a given date?
body: <p>How do I filter date-ranges based on whether they include a specific date?</p>
  <pre class="lang-js prettyprint-override"><code>let visitors = [{
    &quot;S.NO&quot;: 1,
    &quot;Full Name&quot;: &quot;Boss&quot;,
    &quot;Check In&quot;: &quot;2020-04-21 01:51:49&quot;,
    &quot;Check Out&quot;: &quot;&quot;
  }, {
    &quot;S.NO&quot;: 2,
    &quot;Full Name&quot;: &quot;John&quot;,
    &quot;Check In&quot;: &quot;2020-04-19 11:21:17&quot;,
    &quot;Check Out&quot;: &quot;2020-04-19 12:21:26&quot;
  }, {
    &quot;S.NO&quot;: 3,
    &quot;Full Name&quot;: &quot;Doll&quot;,
    &quot;Check In&quot;: &quot;2020-04-02 11:19:48&quot;,
    &quot;Check Out&quot;: &quot;2020-04-02 15:19:58&quot;
  }];
  </code></pre>
  <p>I want to filter the data above by the following date:</p>
  <pre class="lang-js prettyprint-override"><code>let knowntime = &quot;2020-04-02 13:20:22&quot;;
  </code></pre>
  <p>This is the result I'm looking for:</p>
  <pre class="lang-js prettyprint-override"><code>let filtered = [{
    &quot;S.NO&quot;: 3,
    &quot;Full Name&quot;: &quot;Doll&quot;,
    &quot;Check In&quot;: &quot;2020-04-02 11:19:48&quot;,
    &quot;Check Out&quot;: &quot;2020-04-02 15:19:58&quot;
  }];
  </code></pre>
  <p>How do I do that?</p>