title: Converting JSON format date to angular date filter
body: <p>Hi I have a JSON date format data that I need to convert it to angular date and display. </p>
  
  <p>The JSON date format is </p>
  
  <pre><code>  var close_date="\/Date(1151470800000-0500)\/"
  </code></pre>
  
  <p>In my html code I am calling function on load as follow..</p>
  
  <pre><code>//i have other fields in form that i am not showing for sake of simplicity. 
  &lt;form ng-repeat p in list&gt;
         &lt;div&gt;
            &lt;span ng-model="p.close_date" ng-init="fn(p.close_date)"&gt; {{p.close_date}}&lt;/span&gt;
         &lt;/div&gt; 
  &lt;/form&gt; 
  </code></pre>
  
  <p>My ctroller is.. </p>
  
  <pre><code>formsApp.controller('pCtrl', function ($scope, pRepository, $location) {
      $scope.lisr = pRepository.query();
  
      $scope.fn = function (close_date) {
          return eval("new " + close_date.replace(/\\|\//g, ''))
      }
  });
  </code></pre>
  
  <p>When I run the code it should be displaying Jun 27, 2006 11:59:59 PM
  But it doesnt and still shows the jason format date. Can you please let me know how to fix it. I suspect the ng-init is not being called </p>