Posted on: 5/3/2011 11:24:17 AM | Views : 238

Hi, anyone know how to get the following result from 2 DateTimePickers ?
DateTime dateFrom = dateFrom.Value;
DateTime dateTo = dateTo.Value;
I would like to subtract: DateTo - DateFrom; and get something like the following - (Assuming I chose 1st Jan 2011 as DateFrom and 31st May as DateTo)
string[] values;
value[0] = 201101
value[1] = 201102
value[2] = 201103
value[3] = 201104
value[4] = 201105
Thus getting a value for each yyyymm in the range.
...

Go to the complete details ...