quantlib.time.date.Date.from_string¶
- classmethod Date.from_string(cls, str s, str fmt=None)¶
Creates a Date object from a string representation.
- Parameters:
- sstr
The string representation of the date.
- fmtstr, optional
The format string to parse the date. If not provided, ISO format (YYYY-MM-DD) is assumed.