title: how to format a string to date form without using date filter, but by only using js?
body: <p>I have a input tag assosiated with some date picker plugin.</p>
  
  <pre><code>         &lt;input type="text"  ng-model="date"/&gt;//for saving to db
  
           &lt;input type="text" ng-model="date"&gt;   // should be able to see date in formatted form here(coming from db)
  </code></pre>
  
  <p>I want date in formatted form in the second input field . I dont want to use date filter in ui, i want to do it in only js.</p>