This is the query i am trying to run in a python file
cur.execute(f"(select data_end_time from table;))
records = cur.fetchall()")
print(records[0])
This is the Output i am getting
datetime.datetime(2020, 7, 6, 17, 0)
Expected output
2020-07-06 17:00:00
records[0] contains value datetime.datetime(2020, 7, 6, 17, 0) and is of type tuple