title: How to calculate days between two dates in JavaScript
body: <p>How to calculate days between two dates by using JavaScript?</p>
  
  <blockquote>
    <ol>
    <li>How to get only 'day' from the date.</li>
    <li>How to get only 'month' from the date.</li>
    <li>How to get only 'Year' from the date.</li>
    <li>How to calculate 'year' from the 'days'</li>
    </ol>
  </blockquote>
  
  <p>This type of questions are have Answer is below refer it</p>