C#如何获取指定月份的天数? 有没有现成的函数?还是要自己写函数判断?谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 System.DateTime.DaysInMonth(指定年,指定月);int idate=System.DateTime.DaysInMonth(2006,6);返回值 idate 30 public int getDaysOfMonth(int year,int month){ DateTime dt = new DateTime(year,month,1).AddMonths(1); return dt.AddDays(-1).Day;} int i = ((DateTime)str).Day;return i; 如何用C#将COM组件转换成程序集? .net上传图片问题 高人指点 access 相对路径问题, datagridview如何取值?? VB和C#取数据库字段值问题 Socket 类中有没有像 TcpListener 类 的 Pending()一样方法,可以检测是否有请求??? 怎么能让textbox输入规定的值? 白痴问题,C#字符串数比较 简单的求助 求助:如何生成静态页面! 如何用C#做一个软件的自动更新功能 高分求解,VS2005里面的reportViewer1控件和报表Report1.rdlc 关于数据源问题
{
DateTime dt = new DateTime(year,month,1).AddMonths(1);
return dt.AddDays(-1).Day;
}
return i;