def do_date(dt, format='%Y-%m-%d - %A'):
    """Jinja template filter to format a datetime object with date only."""
    if dt is None:
        return ''
    # Only difference with do_datetime is the default format, but that is
    # convenient enough to warrant its own template filter.
    return dt.strftime(format)