SyntaxFix
Write A Post
Hire A Developer
Questions
You need to import the module datetime first:
datetime
>>> import datetime
After that it works:
>>> import datetime >>> date = datetime.date.today() >>> date datetime.date(2013, 11, 12)