I get a field from the string type database
field = 20180117
I'm trying to do something similar to this
datetime.strptime(campo, '%Y-%m-%d').strftime('%Y-%m-%d-T%H:%M:%S')
2018-01-17-T00:00:00
Any ideas or suggestions?