def _format_date(d):
    try:
        return d.strftime('%d-%m-%Y')
    except __HOLE__:
        return d
dataset/ETHPy150Open dimagi/commcare-hq/custom/bihar/reports/indicators/display.py/_format_date