title: Convert number of days into years, months, days
body: <p>I have two date pickers that calculates the number of days there are between the two dates. At the moment I'm outputting the number of days (see code below) which is kind of meaningless. I want to output that number in years, months, days. How can I do that?</p>
  
  <p>E.g So 01/01/14 to 01/02/15 = 397 days which then becomes 1 year(s), 1 month(s), 1 day(s)</p>
  
  <pre><code>var diff = endDate - startDate;
  dayCount = diff / ( 60 * 60 * 24 * 1000 ); // secs * mins * hours * milliseconds
  dayCount = Math.round( dayCount ) + this.options.countAdjust;
  return dayCount;
  </code></pre>