title: (JavaScript) Compare Timestamps daily (over span of 2 years)
body: <p>I have this survey application that stores when my respondents have taken my survey using a JavaScript timestamp (ex 2015-06-18T10:35:26.980Z) </p>
  
  <p>What I need to find out is how many respondents have taken the survey daily. I'm not very sure how to compare the dates daily starting from, for example, 2 years ago. Any pointers how I should proceed? </p>
  
  <p>So far I have an array of the date/time when my respondents took the survey. Many thanks!</p>
  
  <p>Edit: 
  Code so far.</p>
  
  <pre><code>var dateCounter = {};
  
    timeStart.forEach(function(date) {
    var key = date.toISOString().split('T')[0];
    dateCounter[key] = dateCounter[key] || 0;
    dateCounter[key] += 1;
    });
  </code></pre>
  
  <p>console.log(dateCounter);</p>