Implement correctly parse_def_date and add test