SyntaxFix
Write A Post
Hire A Developer
Questions
>>> from datetime import datetime >>> year, month, day = map(int, my_date.split('-')) >>> date_object = datetime(year, month, day)