I am trying to read dates from a txt file and have that converted to datetime format

**Code**:

```
from datetime import datetime, date

with open("birth.txt") as f:
   content = f.readlines()
   content = [x.strip() for x in content] 
   for i in content:
     a = i.split(":")
     date_b = []
     date_b.append(a[-1])
     print date_b
     for j in date_b:
        date_object = datetime.strptime(str(j), '%m-%d-%Y')
        print date_object

```

**Text File**:

```
a:11-23-2001
b:02-14-2002

```

> 
> ValueError: time data ' 11-23-2001' does not match format '%m-%d-%Y'
> 
> 
> 

Can someone help me resolve this error?