from datetime import datetime


def str_to_date_obj(date_str, frmt='%a %d %b %Y %H:%M:%S +0000'):
    """ Utility function to return str date to date object. """
    return datetime.strptime(date_str, frmt).date()