emend_clean_date function

Standardise date format