DateTimPicker控件在遇到29这样特殊的日期,选择时可能会出现
解决方案:在属性中把Value值设置为除29日外的其他日期或者在代码中直接设置Value值:DateTimePicker1 = new DateTime(DateTime.Now.Year,1,1);
DateTimePicker1 = Convert.ToDateTime(DateTime.Now.Year.ToString() + "-" + DateTime.Now.Month.ToString());
DateTimPicker控件在遇到29这样特殊的日期,选择时可能会出现
解决方案:在属性中把Value值设置为除29日外的其他日期或者在代码中直接设置Value值:DateTimePicker1 = new DateTime(DateTime.Now.Year,1,1);
DateTimePicker1 = Convert.ToDateTime(DateTime.Now.Year.ToString() + "-" + DateTime.Now.Month.ToString());
转载于:https://www.cnblogs.com/SharonHwang/p/5226960.html