Parse dates in various formats into a datetime.date object.
If the string doesn’t match a known format, or is an invalid date,
a ValueError will be raised.
Parse times in various formats into a datetime.time object.
If the string doesn’t match a known format, or is an invalid time,
a ValueError will be raised.