I have researched how to do this, but when I print the date and time separately there are other values that appear e.g. 00:00:00 and 1900-01-01.
Code:
import datetime
date = datetime.datetime.strptime('17/12/2018', '%d/%m/%Y')
time = datetime.datetime.strptime('13:26:09', '%H:%M:%S')
print(date)
print(time)
Expected Output:
17/12/2018
13:26:09
>>>
Output:
2018-12-17 00:00:00
1900-01-01 13:26:09
>>>