title: AngularJS increment day in date format
body: <p>What I'm doing is a small prototype application that interact with input date type format.</p>
  
  <p><code>&lt;label&gt;From:&lt;input type="date" ng-model="window.from"&gt;</code></p>
  
  <p>What I did now is that if I change the date on the input a div get his width long n. pixel based on day.</p>
  
  <p>Ie: if date is: <code>"2013-12-30"</code> the div will be width <code>30px</code>.</p>
  
  <p>Now I would like to invert things using a <code>resize</code> plugin. If I resize the <code>div</code> to <code>20px</code> I would like my input to change in <code>"2013-12-20"</code>.</p>
  
  <p>I'm trying different things, like split the date (<code>date.split("-")[2]</code>), increment and building back the date format... it work but I'm sure there is a better way to do that with js or better with angular...</p>
  
  <p>I would like to know best practice to manage date type format with Angular if possible.</p>