def parse_date_from_string(date_string):

    format_list = ['%Y%m%d',
                   '%d/%m/%Y',
                   '%Y-%m-%d'
                   ]

    # Try the formats in the order listed.
    date = None
    for date_format in format_list:
        try:
            date = datetime.datetime.strptime(date_string, date_format).date()
            break
        except ValueError:
            pass

    return date
%prog grass coge_master_table.txt james.txt
dataset/ETHPy150Open GeoscienceAustralia/agdc/src/cube_util.py/parse_date_from_string--crossover with--dataset/ETHPy150Open tanghaibao/jcvi/projects/synfind.py/grass