def get_date_status(value):
        try:
            value = date(value.year, value.month, value.day)
        except AttributeError:
            # Passed value wasn't a date object
            ret = ''
        except ValueError:
            # Date arguments out of range
            ret = ''
        delta = value - date.today()
        if delta.days == 0:
            ret = 'today'
        elif delta.days == 1:
            ret = 'tomorrow'
        elif delta.days < 0:
            ret = 'overdue'
        else:
            ret = ''

        return ret
For date values that are tomorrow, today or yesterday compared to
dataset/ETHPy150Open zorna/zorna/zorna/calendars/api.py/get_date_status