This is my code:
import datetime today = datetime.date.today() print(today)
This prints: 2008-11-22 which is exactly what I wa
2008-11-22
You need to convert the date time object to a string.
The following code worked for me:
import datetime collection = [] dateTimeString = str(datetime.date.today()) collection.append(dateTimeString) print collection
Let me know if you need any more help.