title: Angular.js <input type="date"> change format of submitted value
body: <pre><code>&lt;label&gt;From&lt;/label&gt;
  &lt;input type="date"  ng-model="startDate"/&gt;
  &lt;label&gt;To&lt;/label&gt;
  &lt;input type="date" ng-model="endDate"/&gt;
  
  &lt;button class="btn btn-success" ng-click="getStatistics(startDate, endDate)"&gt;Update&lt;/button&gt;
  </code></pre>
  
  <p><strong>**JS***</strong></p>
  
  <pre><code>$scope.getStatistics = function(startDate, endDate) {
      $http.get('/admin/api/stats?start=' + startDate + '&amp;end=' + endDate).success(function(data) {
          $scope.stats = data;
      });
  }
  </code></pre>
  
  <p>The code above push startDate and endDate value on url, but the problem i have is that the submitted value is like 2014-12-01 and i want my format to be 01-05-2014</p>
  
  <p>Any suggestions?</p>