parse_date
Parse a string and return a datetime.date.
Raise ValueError if the input is well formatted but not a valid date.
Return None if the input isn't well formatted.
def parse_date(
value: string
) - > datetime.date
Parse a string and return a datetime.date.
Parameters
| Name | Type | Description |
|---|---|---|
| value | string | The date string to be parsed, expected in ISO format or a format matching the internal date regular expression |
Returns
| Type | Description |
|---|---|
datetime.date | A date object representing the input string, or None if the input format is not recognized |