"In this class, you will learn to convert date, time and datetime objects to its equivalent string (with the help of examples).\n", "\n", "The **[strftime()](https ...
When using %Y in the format I would expect that the year in the return value has a length of four digits. When converting the string back to a date using strptime ...