[Solved] How to convert datetime string to another format [duplicate]
Use dateutil.parser.parse() parse the date string into a timezone aware datetime object, then use strftime() to get the format you want. For better explanation goto solved How to convert datetime string to another format [duplicate]