

def date_to_json(self, date):
    if date:
        try:
            date = force_to_datetime(date)
            return PhoneTime(date, date.timezone).user_time(self.timezone).ui_string('%d-%m-%Y')
        except ValueError:
            return ''
    else:
        return ''

dataset/ETHPy150Open dimagi/commcare-hq/custom/apps/crs_reports/reports.py BaseHNBCReport.date_to_json/VarMisuse@33/41 `self`->`date`