def parse_date(value):
    if not value:
        return None
    elif isinstance(value, datetime.date):
        return value
    elif isinstance(value, datetime.datetime):
        return value.date()
    else:
        return dateutil.parser.parse(value).date()
Attempts to parse `value` into an instance of ``datetime.date``. If
dataset/ETHPy150Open STIXProject/python-stix/stix/utils/dates.py/parse_date