from datetime import datetime


def convert_to_date(date_str):
    """Convert a date string into a date with a few fallbacks"""
    try:
        # Let's expect the date to be of the form day / month / 4 digit year
        return datetime.strptime(date_str, '%d/%m/%Y').date()
    except ValueError:
        try:
            # OK let's try with 2 digit year?
            return datetime.strptime(date_str, '%d/%m/%y').date()
        except ValueError:
            # OK has it ended up in year first format - if this doesn't work we
            # should fail
            return datetime.strptime(date_str, '%Y/%m/%d').date()