def parse_date(date_str):
    if date_str is None or date_str == "":
        raise ValueError('Invalid date', date_str)
    return fmt_date(parse_date_to_obj(date_str))
Extract date part from given input string
dataset/ETHPy150Open practo/r5d4/r5d4/mapping_functions.py/parse_date