I returned dates between two given dates:
for date in rrule(DAILY, dtstart = date1, until = date2):
print date_item.strftime("%Y-%m-%d")
How to convert the date_item e.g. 2016-01-01 to ISO 8601 format like:2016-01-01T18:10:18.000Z in python?