DateTime theMonth = DateTime.Now;
for(int i = 0; i<8; i++){
string curMonth = theMonth.AddMonths(-i).ToString("MM/yyyy");
}
Or,
DateTime theMonth = DateTime.Now;
string curMonth;
for(int i = 0; i<8; i++){
curMonth = theMonth.AddMonths(-i).ToString("MM/yyyy");
}
which is right or better expression? Or same?