title: Calculate all dates in between given start and end date using javascript
body: <p>I have a start-date and end-date and I want to calculate array of dates between these days based on a given duration.<br>
  for example,<br>
   if start date is 01/01/2015 and end date is 01/06/2015 and if I give duration as 3 months then out put should be:</p>
  
  <pre><code>01/04/2015  
  01/06/2015  
  </code></pre>
  
  <p>How to achieve this using <code>JavaScript</code> and I need to display it in a <code>form</code>.</p>