def date_to_json(self, date):
        if date:
            try:
                date = force_to_datetime(date)
                return (PhoneTime(date, self.timezone).user_time(self.timezone)
                        .ui_string('%d-%m-%Y'))
            except __HOLE__:
                return ''
        else:
            return ''
dataset/ETHPy150Open dimagi/commcare-hq/custom/apps/crs_reports/reports.py/BaseHNBCReport.date_to_json