def new_date(d):
    return date(d.year, d.month, d.day)
Generate a safe date from a datetime.date object.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/_internal/django/utils/datetime_safe.py/new_date