Given a date how can I select the begining and ending of the year to which
the date belongs ?