from datetime import datetime


def format_to_date(date_str):
    """Format to Date object

    Args:
        date_str (string): date without dash

    Returns:
        date: date object without dash
    """
    return datetime.strptime(date_str, "%Y%m%d").date()