from datetime import datetime
str_date = '2021-10-10 13:13:13'
date_obj = datetime.strptime(str_date, '%Y-%m-%d %H:%M:%S')
print(date_obj)
from datetime import datetime
str_date = '2021-10-10 13:13:13'
date_obj = datetime.strptime(str_date, '%Y-%m-%d %H:%M:%S')
print(date_obj)