def get_date_aux(date):
    try:
        return datetime.datetime.strptime(date, '%d-%m-%Y') \
            if not isinstance(date, datetime.datetime) else date
    except Exception as ex:
        return dateutil.parser.parse(date)