I have an list:
a=[datetime.date(2010,10,20),1,4,datetime.date(2013,10,20)]
As you can see the list contains different types of elements. How can I get the max date within the list?
My attempt:
from datetime import datetime
b=datetime.max(a)
print b