def get_year(self):
        """
        Return the year from the database in the format expected by the URL.
        """
        year = super(BuildableDayArchiveView, self).get_year()
        fmt = self.get_year_format()
        dt = date(int(year), 1, 1)
        return dt.strftime(fmt)
Return the year from the database in the format expected by the URL.