Use `parseExact` when parsing dates with a format.