I want a list of date range in which each element is 'yyyymmdd' format string, such as : ['20130226','20130227','20130228','20130301','20130302'] .
I can use pandas to do so:
>>> pandas.date_range('20130226','20130302')
<class 'pandas.tseries.index.DatetimeIndex'>
[2013-02-26 00:00:00, ..., 2013-03-02 00:00:00]
Length: 5, Freq: D, Timezone: None
But it is DatetimeIndex and I need to do some extra format transform, so how to do that in a neat way ?