def serialize_date(value):
    if not value:
        return None
    elif isinstance(value, datetime.date):
        return value.isoformat()
    elif isinstance(value, datetime.datetime):
        return value.date().isoformat()
    else:
        return parse_date(value).isoformat()
Export the flatten indicators of one or several users to CSV.
dataset/ETHPy150Open STIXProject/python-stix/stix/utils/dates.py/serialize_date--crossover with--dataset/ETHPy150Open yvesalexandre/bandicoot/bandicoot/io.py/to_csv