def _date_to_datetime(value):
  assert isinstance(value, datetime.date)
  return datetime.datetime(value.year, value.month, value.day)
Convert a date to a datetime for datastore storage.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/db/__init__.py/_date_to_datetime