What is the role of `SimpleDateFormat` in parsing dates?
`SimpleDateFormat` is used to format and parse dates. It provides methods like `parse()` for converting strings to dates and `format()` for converting dates to strings.
Excellent! You've captured the essence of how `SimpleDateFormat` works.
Can you explain what happens if the string doesn't match the expected date format?