0

I would like to convert the following time format to a valid date time format for my graphs.

2020-05-06T08:49:23.004+10:00

So far I've been removing the +10:00 in order to make it work.

1 Answer 1

1

Have you tried pandas.to_datetime(time), where time = 2020-05-06T08:49:23.004+10:00?

Sign up to request clarification or add additional context in comments.

1 Comment

It has to be something on your side, code ` import pandas as pd time = "2020-05-06T08:49:23.004+10:00" print(pd.to_datetime(time)) ` Outputs 2020-05-06 08:49:23.004000+10:00 as a datetime object. I have pandas 1.0.3.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.