from datetime import date from dateutil.rrule import rrule, DAILY time_start = date(2016, 6, 1) time_end = date(2016, 6, 15) l = list(map(lambda i: str(i)[:10].strip(), rrule(DAILY, dtstart=time_start, until=time_end))) print(l) # ['2016-06-01', '2016-06-02', '2016-06-03', '2016-06-04', '2016-06-05', '2016-06-06', '2016-06-07', '2016-06-08', '2016-06-09', '2016-06-10', '2016-06-11', '2016-06-12', '2016-06-13', '2016-06-14', '2016-06-15']