@classmethod
    def get_date(cls, request, date_type):
        date_str = cls.get_date_str(request, date_type)
        if date_str is not None:
            try:
                return datetime.datetime.combine(
                    iso_string_to_date(date_str), datetime.time())
            except __HOLE__:
                if date_type == cls.START_DATE:
                    return datetime.datetime.today() - datetime.timedelta(days=cls.default_days)
                elif date_type == cls.END_DATE:
                    return datetime.datetime.today()
                else:
                    return None
        else:
            return None
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/accounting/filters.py/DateRangeFilter.get_date