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 ...