Given:
dates = [ datetime(2014, 10, 11), datetime(2014, 10, 1), datetime(2014, 10, 2), datetime(2014, 10, 3), datetime(2014, 10, 5