I have date in the following format "2020-03-22T03:15:05+00:00"
in Python. I need to convert this to "%Y-%m-%d %H:%m:%s"
. I am trying to do this using dateutil
but could not find anything.
Can anyone please help
d = "2020-03-22T03:15:05+00:00"
print(d)
t = dateutil.parser.parse(d)
time = t.strftime('%Y-%m-%d')
I need some idea to extract date and time from above code