reformat date string to be more generic