title: Angular: Why date is wrapped in double quote
body: <p>I am learning angular. So tried a custom filter which will return date in utc format. Code works, but double quote comes in output. what mistake I've made?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var app = angular.module('myApp', []);
  app.controller('datCtrl', function($scope) {
    $scope.today = new Date();
  });
  
  app.filter('getUtcDate', [
    function() {
      return function(input) {
        return input;
      };
    }
  ]);</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"&gt;&lt;/script&gt;
  
  &lt;body&gt;
    &lt;div ng-app="myApp" ng-controller="datCtrl"&gt;
      &lt;p&gt;Date = {{ today | getUtcDate }}&lt;/p&gt;
    &lt;/div&gt;
    &lt;p&gt;The date filter formats a date object to a readable format.&lt;/p&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <h2>Output</h2>
  
  <p><strong>Date = <code>"2017-04-27T09:36:09.166Z"</code></strong></p>