title: Filter date by month using angular.js filter
body: <p>I can filter data by date using the filter statement of angularjs but now I need to filter it only by month and year, there is a simple way to do it? </p>
  
  <p>Here my code:</p>
  
  <p>app.js</p>
  
  <pre><code>$scope.expenses = [{amount:100.00, date:"2013-12-20"}, {amount:100.00, date:"2013-12-20"}];
  </code></pre>
  
  <p>index.html</p>
  
  <pre><code>&lt;input ng-model="expenseDate" type="date" value="dd-mm-yyyy" ng-required="true"&gt;            
  &lt;li ng-repeat="expense in expenses | filter:{date:expenseDate}"&gt;
      &lt;span&gt;{{expense.date)}}, {{expense.amount}} &lt;/span&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p><strong>Edited</strong></p>
  
  <p>can't I do something like this?</p>
  
  <pre><code>&lt;li ng-repeat="expense in MyOwnFilter(expenses) | filter:{date:expenseDate}"&gt;
      &lt;span&gt;{{expense.date)}}, {{expense.amount}} &lt;/span&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>&lt;li ng-repeat="expense in MyOwnFunction() | filter:{date:expenseDate}"&gt;
      &lt;span&gt;{{expense.date)}}, {{expense.amount}} &lt;/span&gt;
  &lt;/li&gt;
  </code></pre>