How to convert date to ISO format in Python With the Z at the end? The date is: 2020-11-01 01:11:39 How can I convert it to: 2020-11-01T01:11:39Z ? Edit: How do I parse an ISO 8601-formatted date and time? doesn't answer my question because I am trying to CONVERT normal dates to ISO date. Continue reading...