Wrong exception message for parsing datetime

If the date format come from the metadata, the exception message is wrong.