def datetime_to_csl(dt):
    return {'date-parts': [[dt.year, dt.month, dt.day]]}
Given a datetime, return a dict in CSL-JSON date-variable schema
dataset/ETHPy150Open CenterForOpenScience/osf.io/website/citations/utils.py/datetime_to_csl