def to_datetime(date):
    return datetime.datetime(date.year, date.month, date.day)
Transforms a date or datetime object into a date object.
dataset/ETHPy150Open caktus/django-timepiece/timepiece/utils/__init__.py/to_datetime