title: How to change format of a date from dd/mm/yyyy to MM/dd/yyyy where date is already converted from string?
body: <p>I am getting date from a API which is in string format, I converted that string to date but unable to change it's format. Currently I got string like this -> '20/11/2016' I want to convert this &amp; should look like this
  -> 11/20/2016 &amp; then only I can display this in html page using html 5 date input type</p>
  
  <pre><code>    &lt;input type='date' ng-model='myDate'&gt;
  
     myApp.controller('myCtrl',['$scope','$filter'],
     function ($scope,$filter)
     {
      //consider this string comes from api...
     var stringDate='20/11/2016';
     var convertedDate=new Date(stringDate);
     $scope.myDate=$filter('date')(convertedDate,'MM/dd/yyyy');
     });
  </code></pre>