日期问题 int DateTime.DaysInMonth(int year, int month); //某年某月有多少天DateTime dt = new DateTime(2005,10, 10);DayOfWeek dow = dt.DayOfWeek; //星期几 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 DateTime.DaysInMonth(int year, int month); int i_tem = System.DateTime.DaysInMonth(2004,11); System.DateTime dt = new DateTime(); dt = Convert.ToDateTime("2004-11-22"); string str = dt.DayOfWeek.ToString(); MessageBox.Show(i_tem.ToString()+";"+str); 窗体问题 记得网上有篇文章叫"在WinForms程序里实现窗体传值的最佳实践 " 时间字符串的问题 .ascx 自定义控件的问题 深度复制时的属性问题,搞了一天了,急求助。 请推荐C#和ASP.NET 2.0 好书? 请问.NET中怎样注册自己的命名空间,在编程时导入自己的命名空间 轻易不问问题,要问就问经典问题,或傻问题 so hard 这次没高手不行了 (解决就给200分(需贴给)) 两个问题,大家帮我支支招 300分求:如何去掉CrystalReportViewer的状态栏?--解决马上给分! 生成了一组控件,怎么分清楚哪个是哪个? 贴子发不出去
System.DateTime dt = new DateTime();
dt = Convert.ToDateTime("2004-11-22");
string str = dt.DayOfWeek.ToString();
MessageBox.Show(i_tem.ToString()+";"+str);