摘要: //取得某月的最后一天 //方法一:使用算出該月多少天,年+月+加上多少天即得,舉例取今天這個月的最后一天 private void GetLastDateForMonth(DateTime DtStart, out DateTime DtEnd) { int Dtyear, DtMonth; DtStart = DateTime.Now; Dtyear = DtStart.Year; DtMonth = DtStart.Month; int MonthCount = DateTime.DaysInMonth(Dtyear, DtMonth);//計算該月有多少天 DtEnd = Conver 阅读全文
posted @ 2012-05-10 16:08 zhu_xj 阅读(4004) 评论(0) 推荐(0) 编辑