title: AngularJS how to handle a Bootstrap datepicker date to send it out for a REST backend
body: <p>I have a angular-strap bootstrap datepicker</p>
  
  <pre><code>&lt;input id="dp5" class="span8" type="text" ng-model="obj.date" data-date-format="mm/dd/yyyy"  placeholder="Pick a Date" bs-datepicker&gt;
  </code></pre>
  
  <p>The backend is a Spring MVC REST application which originally returns the date in milliseconds (java.util.Date). The date I receive from the above datepicker element is in the following format</p>
  
  <pre><code>2013-10-01T06:00:00.000Z
  </code></pre>
  
  <p>How can I convert it to milliseconds so that I can properly ship it to the backend?</p>