I\'m using the following query to get the next month.
int theMonth = ((System.DateTime)periodStartDate).Month+1;
But if the periodstartDate
after you compute theMonth, check whether it equals to 13 (the month after December) and replace the value with 1:
theMonth
theMonth = theMonth==13 ? 1 : theMonth;