title: Get date object for the first/last day of the current year
body: <p>I need to get <code>date</code> objects for the first and last day in the current year.</p>
  
  <p>Currently I'm using this code which works fine, but I'm curious if there's a nicer way to do it; e.g. without having to specify the month/day manually.</p>
  
  <pre><code>from datetime import date
  a = date(date.today().year, 1, 1)
  b = date(date.today().year, 12, 31)
  </code></pre>