- str2date(value)¶
Parse a string into a date value using ISO format.
This is just an alias for
datetime.date.fromisoformat.- Parameters:
value (
str) – The date string in ISO format (YYYY-MM-DD).- Raises:
ValueError – If the string is not a valid ISO date format.
- Return type:
date- Returns:
The parsed date object.