62,250
社区成员




string year = this.TextBox1.Text.Trim().Substring(0, 4);
string month = this.TextBox1.Text.Trim().Substring(4);
DateTime current = Convert.ToDateTime(year + "-"+month+"-" + "01");
//前月天數
int days = System.DateTime.DaysInMonth(current.AddMonths(-1).Year, current.AddMonths(-1).Month);
//翌月天數
int days = System.DateTime.DaysInMonth(current.AddMonths(1).Year, current.AddMonths(1).Month);