title: How to filter data by date range on mapbox GL JS?
body: <p>I have some difficulties to implement this filter in mapboxGL-js</p>
  
  <p>i have a vector tile layer that had some feature which include 2 properties 2 dates, startdate1 and enddate1 in string  with the following format yyyy-mm-dd
  I'd like to filter only the features that are between my specific date range, startDate2, endDate2 with the same format </p>
  
  <p>How can i get the date1 and date2, in order to  call the javascript function <strong>Date.parse(date1)</strong> in order to compare it against my startDate  ?</p>
  
  <p>Id' like to apply the following condition in my filter to kepp only the features</p>
  
  <pre><code>Date.parse(startdate1)&lt;= Date.parse(enddate2)  AND  Date.parse(enddate1) &gt;= Date.parse(startdate2) 
  </code></pre>
  
  <p>Thanks for your help !</p>