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
Use date.strftime. The formatting arguments are described in the documentation.
This one is what you wanted:
some_date.strftime('%Y-%m-%d')
This one takes Locale into account. (do this)
some_date.strftime('%c')