文章分类 -  SEO

摘要:一、取某月的最后一天法一、使用算出该月多少天,年+月+加上多少天即得,举例取今天这个月的最后一天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 = Convert.ToDateTime(Dtyear.ToStri 阅读全文
posted @ 2011-05-10 17:07 小2010 阅读(1457) 评论(0) 推荐(0)