tidy up process date string