'Formats the given date as a day of week.
Example: "Monday, January 22". You can remove the day of week with
``dow=False``.'

def format_day(self, date, gmt_offset=0, dow=True):

    local_date = (date - datetime.timedelta(minutes=gmt_offset))
    _ = self.translate
    if dow:
        return (_('%(weekday)s,    %(month_name)s    %(day)s') % {'month_name': self._months[(local_date.month - 1)], 'weekday': self._weekdays[local_date.weekday()], 'day': str(local_date.day)})
    else:
        return (_('%(month_name)s    %(day)s') % {'month_name': self._months[(local_date.month - 1)], 'day': str(local_date.day)})
