I have a UTC format date string represented as :
ds = "2019-06-15 17:18:06 UTC"
I am trying to convert it into a python utc datetime object like this :
d = datetime.strptime(ds,'%Y-%m-%dT%H:%M:%SZ')
However I am getting the following error :
ValueError: time data '2019-06-15 17:18:06 UTC' does not match format '%Y-%m-%dT%H:%M:%SZ'
So what is the correct format to pass, so that I get a datetime object in UTC timezone?