I have a list of date-time data strings that looks like this:

```
list = ["2016-08-02T09:20:32.456Z", "2016-07-03T09:22:35.129Z"]

```

I want to convert this to the example format (for the first item):

```
"8/2/2016 9:20:32 AM"

```

I tried this:

```
from datetime import datetime
for time in list:
    date = datetime.strptime(time, '%Y %m %d %I %R')

```

But returns error:

> 
> ValueError: 'R' is a bad directive in format '%Y %m %d %I %R'
> 
> 
> 

Thanks for any help!