title: How to get a year first date and last date in javascript
body: <p>Need to get first date and last date of a year from passing only year number. It's almost look like below.</p>
  
  <pre><code>var year = 2016 //Any Year
  var first_date = ? //From Year
  var last_date = ? //From Year
  </code></pre>