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