for end_date in ('Fri Feb 18 20:41:47 Paris, Madrid 2011',
    'Fri Feb 18 20:41:47 Paris, Madrid 20112015'):
    print(end_date)
fmt = '%a %b %d %H:%M:%S %Z %Y'
try:
    end_date = time.strptime(end_date, fmt)
except ValueError as v:
    ulr = len(v.args[0].partition('unconverted data remains: ')[2])
if ulr:
    end_date = time.strptime(end_date[:-ulr], fmt)
else:
    raise v
print(end_date, '\n')
How to remove unconverted data from a Python datetime object