def normalize_date(val, iso8601=True):
    if not val:
        return ''
    if type(val) == str:
        val = parse_date(val)
    if iso8601:
        return (val.year, val.month, val.day) % "%4d-%02d-%02d"
    return "%02d %s %4d" % (val.day, _num2str[val.month], val.year)
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Paste-2.0.1/paste/util/datetimeutil.py/normalize_date/swapped operands of `%`