1:获取指定月份的天数
 int Days = DateTime.DaysInMonth(Year, Month);//Year指定的年份,Month指定的月份
 2:当前月份的天数
int   idate=System.DateTime.DaysInMonth(System.DateTime.Now.Year,System.DateTime.Now.Month); 
posted on 2008-05-16 12:55  joyboy  阅读(1847)  评论(0编辑  收藏  举报