摘要: 最近在写一个人力考勤功能其中一个功能是获取全年的周六周日节假日,并本地化供考勤处理参考。方法如下:public void GetWMDay(){ string year ="2013" DateTime counYear=Convert.ToDateTime(ls_nd+"-01-01"); DateTime nestYear=l_dte1.AddYears(1); for(DateTime i=counYear;i<nestYear;i=i.AddDays(1)) { if ((int)i.DayOfWeek == 0 ){ // 周日 to d 阅读全文
posted @ 2014-01-08 16:27 If_1989 阅读(2401) 评论(0) 推荐(0)