search not working in angular data
<p>I want to format the date and then search from the input box. I am trying to use a converter but for some reason the search does not work and my filter isnt working either
here is my fiddle example</p>

<p><a href="https://jsfiddle.net/U3pVM/25662/" rel="nofollow">https://jsfiddle.net/U3pVM/25662/</a></p>

<p>here is my code</p>

<pre><code>&lt;div ng-app='app'&gt;
  &lt;h2&gt;Todo&lt;/h2&gt;
  &lt;div ng-controller="TodoCtrl"&gt;
  &lt;form&gt;
      &lt;div class="form-group"&gt;
        &lt;div class="input-group"&gt;
          &lt;div class="input-group-addon"&gt;&lt;i class="fa fa-search"&gt;&lt;/i&gt;&lt;/div&gt;
          &lt;input type="text" class="form-control"  ng-model="search"&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/form&gt;

   &lt;div ng-repeat="item in data"&gt;
     {{item.date }}
   &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>and here is my controller</p>

<pre><code>var app = angular.module('app', []);
app.controller('TodoCtrl', function ($scope)  {

      $scope.data = [
  {
    name_object: "my Object",
    date: "2016-05-01 20:00:00",
    id: "123",
    name: "xy kaj Pl"
  },
  {
    name_object: "my Object2",
    date: "2014-15-01 20:10:00",
    id: "143",
    name: "Rose Jack"
  },
  {
    name_object: "my Object3",
    date: "2015-17-01 04:00:00",
    id: "143",
    name: "John Smith"
  },
  {
    name_object: "my Object4",
    date: "2016-18-01 04:00:00",
    id: "142",
    name: "Barbara Francis"
  }
]
});

$scope.dateFormat = function(string){
     return  isoDate(string);
    };
app.filter('isoDate', function(string){
   return new Date(string.split(' ').join('T'));
});
</code></pre>

<p>When I enter the date, it does not filter and also my custom filter is not working to formate date either.</p>

<p>Thanks</p>