def is_date(obj):
    return isinstance(obj, datetime.date) and not isinstance(obj, datetime.datetime)
Returns True if obj is a date object proper.
dataset/ETHPy150Open django-predicate/django-predicate/predicate/lookup_utils.py/is_date