Hi,
I am displaying future months and the code works for the month
Here is the code
checker2.StartDate = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1).AddMonths(1);
checker2.Days = DateTime.DaysInMonth(DateTime.Today.Year, DateTime.Today.Month);
Label2.Text = checker2.StartDate.ToString("MMMM yyyy");
The problem is the code for the number of days in the month
Any suggestions as to how I can get it not to reflect this months number of days but the number of days for the month shown in the new month line?
I have tried
checker2.Days = DateTime.DaysInMonth(DateTime.Today.Year, DateTime.Today.Month + 1)
But this does not work when the new year moves to 2011
Thank you
Michael