0
1387
from datetime import datetime
datetime_str = '08/20/19 14:56:27'
datetime_object = datetime.strptime(datetime_str, '%m/%d/%y %H:%M:%S')
print(type(datetime_object))
print(datetime_object) # print in default format
<type 'datetime.datetime'>
2019-08-20 14:56:27
Comment here