你的位置:首页 > 软件开发 > ASP.net > 计算某个月的最后一天

计算某个月的最后一天

发布时间:2016-09-13 18:00:07
方法:public static DateTime GetLastDayofMonth(int year, int month) { int days = DateTime.DaysInMonth(year, month); DateTime datet ...

方法:

public static DateTime GetLastDayofMonth(int year, int month)    {      int days = DateTime.DaysInMonth(year, month);      DateTime datetime = new DateTime(year, month, 1);      return datetime.AddDays(days - 1);    }

原标题:计算某个月的最后一天

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录