title: How to filter Dates and JSon Data using JS/Jquery
body: <p>I am getting two values from DatePicker (End,Start). I'd like to filter data and get data between those two values. </p>
  
  <p>But i couldn't get it to work the write way.</p>
  
  <p>To focus on the problem, Let's consider the both value (Start Date and End Date)</p>
  
  <pre><code>// Here I want to 
  //var myDate = new Date();
  var startDate = new Date(2013, 1, 28);
  var endDate = new Date(2013, 1, 30);
  </code></pre>
  
  <p>The data I have is like : </p>
  
  <pre><code>var filter_data = {
      "type": "FeatureCollection",
      "features": [{
          "geometry": {
              "type": "Point",
              "coordinates": [-73.98115508098644, 40.755304404503995]
          },
          "type": "Feature",
          "id": 0,
          "properties": {
              "Date": "01/20/2013 08:58:03 PM",
              "lat": 40.755304404503995,
              "lon": -73.98115508098644,
              "Address": "33 WEST 44 STREET"
          }
      },, {
          "geometry": {
              "type": "Point",
              "coordinates": [-73.968253883967947, 40.765050901514641]
          },
          "type": "Feature",
          "id": 1,
          "properties": {
              "Date": "01/29/2013 02:53:11 PM",
              "lat": 40.765050901514641,
              "lon": -73.968253883967947,
              "Address": "564 PARK AVENUE"
          }
      }, 
                  ]
  };
  </code></pre>
  
  <p>To filter the data, I used two different approaches, but none of these approaches work. </p>
  
  <pre><code>var filteredData_2 = filter_data.where( ( n, i ) =&gt; n.properties.Date &lt;startDate &amp;&amp; n.properties.endDate ) ;
  
   var filteredData = filter_data.filter(function(a){return a.properties.Date &gt;startDate &amp;&amp; a.properties.Date &lt;endDate;});
  
  
  console.log(filteredData_2)
  
  console.log(filteredData)
  </code></pre>
  
  <p>Here is the like to JsFiddle: </p>
  
  <p><a href="http://jsfiddle.net/dnvrw/1/" rel="nofollow">http://jsfiddle.net/dnvrw/1/</a></p>