title: How to set the format for input type date to be dd-MM-yyyy Angular
body: <p>I am trying to setup a value in Angular controller for the input which is of type date but the problem is it always shows the value in yyyy-MM-dd format. </p>
  
  <p>How can I change it to display in <strong>dd-MM-yyyy</strong> format?</p>
  
  <p>Markup:</p>
  
  <pre><code> &lt;input class="form-control" type="date" ng-model="startDate"&gt;
  </code></pre>
  
  <p>and the controller</p>
  
  <pre><code>  $scope.startDate = $filter('date')('2014-02-27T10:00:00', 'dd-MM-yyyy');
  </code></pre>
  
  <p>Thank you</p>