Possible Duplicate:
Find missing dates for a given range
Create an array or List of all dates between two dates
From two dates of data type DateTime
representing a date of start
and a date of end
.
I need return an array or List which contain all the dates in DateTime format.
Considering the faster code for performance reason. Could anyone please point me out in the right direction with sample source code?
Example
INPUT
startDate = 25/01/2013
endDate = 31/01/2013
RESULT
25/01/2013
26/01/2013
27/01/2013
28/01/2013
29/01/2013
30/01/2013
31/01/2013