from datetime import datetime


def find_entries_within_date_range(log_container, date_from, date_to):
    """Finds entries within the range of dates specified"""
    if isinstance(date_from, str):
        date_from = datetime.strptime(date_from, log_container.date_format)
    if isinstance(date_to, str):
        date_to = datetime.strptime(date_to, log_container.date_format)
    return log_container.find_by('date', date_from, date_to)