I had the following error in Nov 13th 2022
end = datetime.strptime("2022-11-16", "%Y-%d-%m")
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/_strptime.py", line 568, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/_strptime.py", line 352, in _strptime
raise ValueError("unconverted data remains: %s" %
ValueError: unconverted data remains: 6
but I didn't have the error in the following case,
date_value = datetime.strptime("2022-11-12", "%Y-%d-%m")
Well, strptime function of datetime module is not support to convert for future date? If no, let me know the way....please