title: angular filter which convert date and time to single formatted string
body: <p>I am using data from a API, which returns a date and time in two different key/value pair (date and time). </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html ng-app="app"&gt;
  &lt;head&gt;
    &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.1/angular.min.js"&gt;&lt;/script&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;JS Bin&lt;/title&gt;
  &lt;/head&gt;
  &lt;body ng-controller="ctrl"&gt;
  
    Date {{date}} - Time {{time}}
    &lt;br/&gt;
    {{date  | dateformatter}}
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>angular.module("app",[]).controller("ctrl", function($scope) {
    $scope.date = "03/13/2014";
    $scope.time = "8:10:56";
  
  }).filter("dateformatter", function($filter){
    // this should return 'yyyy-MM-dd h:mm:ss'
    return function(dt) {
      return "2014 03 13 8:10:56";
    }
  })
  </code></pre>
  
  <p>Can I use a filter to convert it to a single formatted string?</p>
  
  <p><a href="http://jsbin.com/kucamapa/2/edit" rel="nofollow"><strong>Here's an example in jsBin</strong></a></p>