title: Angular format input value as date with modal
body: <p>I have an input that accepts the datetime picker as an option. Now when choosing a date it shows correctly.</p>
  
  <p>When loading the date in when say the user presses an edit button from one of the entries the date shows incorrect as format (Don't know the name of the date format):</p>
  
  <pre><code>Thu Oct 09 2014 05:06:00 GMT+1100 (AEDT)
  </code></pre>
  
  <p>My code is as such, my mission is to format the date on the input no matter how it's loaded.</p>
  
  <pre><code>&lt;input type="text" class="form-control" datepicker-popup="{{'dd-MMMM-yyyy'}}" ng-model="{{startDate | date:'yyyy-MM-dd'}}" is-open="openedStart" datepicker-options="dateOptions" date-disabled="disabled(date, mode)" ng-required="true" close-text="Close" /&gt;
  </code></pre>