title: How to format date in angularjs
body: <p>I want to format date as <code>mm/dd/yyyy</code>. I tried the following and none of it works for me.
  Can anyone help me with this?</p>
  
  <p>reference: <a href="https://github.com/angular-ui/ui-date" rel="noreferrer">ui-date</a></p>
  
  <pre><code>&lt;input ui-date ui-date-format="mm/dd/yyyy" ng-model="valueofdate" /&gt; 
  
  &lt;input type="date" ng-model="valueofdate" /&gt;
  </code></pre>