Correct a date format string.