title: Date search filter is not working in angular js
body: <p>I am new to angular js.
  I am trying to implement date custom filter using date picker .
  I have tried it , but I am not getting any idea to work out.
  Below is my code.</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>  &lt;div class="col-sm-2 m-b-xs"&gt;
      &lt;input type="text" name="from_date" class="form-control" placeholder="From" date-time view="date" auto-close="true" min-view="date" ng-model="from_date"  format="MMM-DD-YYYY" readonly /&gt;
        &lt;/div&gt;
  </code></pre>
  
  
  
  <pre class="lang-html prettyprint-override"><code>   &lt;tr class="gradeU" ng-repeat="x in invoice | filter:{created : from_date}"&gt;       
    &lt;td style="text-align: center;"&gt;{{ x.created | datetime }}&lt;/td&gt;      
  &lt;/tr&gt; 
  </code></pre>
  
  
  
  <pre class="lang-js prettyprint-override"><code>JS SECTION 
  function InvoiceControllers($scope, $stateParams, $http, $state) {
      $scope.filterData = {};
      $scope.invoice_listing = function (data) {
          var json = (function () {
              var json = null;
              $.ajax({
                  'async': false,
                  'global': false,
                  'url': 'invoices/listing_invoice',
                  'data': data,
                  'dataType': "json",
                  'success': function (data) {
                      // alert(data);
                      json = data;
                  }
              });
              return json;
          })();
          //$scope.formData = {value : json};
          $scope.invoice = json;
      };
      var data = {};
      $scope.invoice_listing(data);
  
      $scope.filter_invoice = function () {
          var data = $scope.filterData;
          $scope.invoice_listing(data);
      };
  
  
  }
  
  function dateTime($filter) {
      return function (input) {
          if (input == null) {
              return "";
          }
  
          var _date = $filter('date')(new Date(input), 'MMM-dd-yyyy');
          return _date.toUpperCase();
  
      };
  }
  
  angular
          .module('inspinia')
  
          .controller('InvoiceControllers', InvoiceControllers)
  
          .filter('datetime', dateTime);
  </code></pre>
  
  <p>Here I have tried  the search part in from date section.
  <a href="https://i.stack.imgur.com/uwfHF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uwfHF.png" alt="enter image description here"></a></p>
  
  <p>Any suggestion .Thank you </p>