title: Get the last day of the month given the month
body: <p>How would I get the last day of a current month given the month number.</p>
  
  <p>For example if the month is 8 (August 2014), how would I get the last day of the month? (The last day of August is the 31th). The function(8) would return 31. </p>
  
  <p>Thank you for the help.</p>