If I have two NSDate
objects, a startDate and endDate, how could I easily create an array of date objects for each day inbetween these two dates, inclusive?
In Python it's quite easy:
import pandas as pd
from datetime import datetime
dr = pd.date_range('2012-07-01', '2012-08-01')
dr[(dr >= datetime(2012,7,4)) & (dr <= datetime(2012,7,8))]