I\'m using strptime to convert a date string into a datetime. According to the linked page, formatting like this should work:
datetime
>>> # Usi
You can also do the following,to import datetime
from datetime import datetime as dt dt.strptime(date, '%Y-%m-%d')