string Wkid = Request.QueryString["id"]; DateTime now = DateTime.Now; DateTime d1 = new DateTime(now.Year, now.Month, 1); int c = DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month); for (int i = 0; i < c; i++) { string j = d1.AddDays(i).toFormatShortDate();