title: ng-repeat filtering data by date range
body: <p>I'm trying to filter a list that contains a timestamp by typing a range of dates</p>
  
  <p>for example:  </p>
  
  <p><a href="http://jsfiddle.net/AviFix/p1h56tk1/4/">JSFIDDLE</a></p>
  
  <p><strong>html</strong></p>
  
  <pre><code>&lt;div ng-app="tst"&gt;
      &lt;div ng-controller="MyController"&gt;
          &lt;table&gt;
              &lt;tr&gt;
                  &lt;td&gt;From:
                      &lt;input ng-model="query.date1" type="text" placeholder="" /&gt;
                  &lt;/td&gt;
                  &lt;td&gt;To:
                      &lt;input ng-model="query.date2" type="text" placeholder="" /&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr ng-repeat="order in orders |filter:query"&gt;
                  &lt;td&gt;{{order.date1 * 1000 | date:'dd-MM-yyyy'}}&lt;/td&gt;
                  &lt;td&gt;{{order.date2 * 1000 | date:'dd-MM-yyyy'}}&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>javascript</strong></p>
  
  <pre><code>var nameSpace = angular.module('tst',[]);
  
  nameSpace.controller('MyController', function MyController($scope) {
    $scope.orders = [
    {
      "date1":"1306487800",
      "date2":"1406587800"
    },
    {
      "date1":"1196487800",
      "date2":"1406597800"
    }]
  });
  </code></pre>
  
  <p>i want to be able to fill the "From" field with the value : 27-05-2010</p>
  
  <p>and the "To" field  the value of : 29-07-2015</p>
  
  <p>and get only the records that are in this range.</p>
  
  <p>(the first record in the example).</p>
  
  <p>Thanks allot
  Avi</p>