title: Find the first and last day of month based on the month number in Angular
body: <p>I have an array with all months and the number of the month, like this :</p>
  
  <pre><code>  months = [
      { name: 'JANUARY', id: 0 },
      { name: 'FEBRUARY', id: 1 },
      { name: 'MARCH', id: 2 }
     ......
  ]
  </code></pre>