title: ng-repeat groupBy date field per day
body: <p>I am trying to <code>groupBy</code> a date which is a JS date object. I want to group the data per day.<br>
  Any ideas how I can do this in a view?</p>
  
  
  
  <pre><code>$scope.data = {
    messages: [
      {
        date: new Date(1432811030 * 1000),
        message: 'Some text 01'
      },
      {
        date: new Date(1432731600 * 1000),
        message: 'Some text 02'
      },
      {
        date: new Date(1432819703 * 1000),
        message: 'Some text 03'
      }
    ]
  };
  </code></pre>
  
  <p>And in my view I use:</p>
  
  
  
  <pre><code>&lt;div ng-repeat="(key, value) in data.messages | groupBy: 'date'"&gt;
    &lt;div&gt;{{ key }}&lt;/div&gt;
    &lt;div ng-repeat="message in value"&gt;
      &lt;div&gt;{{ message.message }}&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have this <code>angular.filter</code> module included in mu project: <a href="https://github.com/a8m/angular-filter" rel="nofollow">https://github.com/a8m/angular-filter</a></p>
  
  <p>Problem is that I now group per date/time instead of per day. Any idea how?</p>