SyntaxFix
Write A Post
Hire A Developer
Questions
Use datetime.datetime.strptime:
datetime.datetime.strptime
>>> import datetime >>> date = datetime.datetime.strptime('2012-02-10', '%Y-%m-%d') >>> date.isoweekday() 5