Admin | 2007-11-6 15:41:50 | 被阅次数 | 15336
//strYear 年份public int GetWeek(string strYear) { string returnStr=""; System.DateTime fDt=DateTime.Parse(strYear+"-01-01"); int k=Convert.ToInt32(fDt.DayOfWeek);//得到该年的第一天是周几 if(k==1) { int countDay = fDt.AddYears(1).AddDays(-1).DayOfYear; int countWeek = countDay/7+1; return countWeek; } else { int countDay = fDt.AddYears(1).AddDays(-1).DayOfYear; int countWeek = countDay/7+2; return countWeek; } }
此文引用www.csdn.net会员贴子!
如何架设个人web服务器(winxp)
python打包的EXE运行提示不是有效的32
如何防止页面重复提交数据
asp.net将人民币数字转为为对应的大写
checkboxlist不换行、通过代码选中某几
SignarL服务器端发送消息给客户端的几
asp.net输出条形码的代码
Asp.net中防止用户多次登录的方法
程序设计流程图的常用符号及含义
将ASP.NET页面内的数据导出到Excel或Wo
singalr制作CS客户端失效的问题
把ArrayList作为DropDownList的数据源
利用Adapter返回Tables并填充给GridVie
IE访问网址,网址自动多出很多字符如何
asp.net2.0网站各种文件扩展名、文件夹
监控鼠标位置与键盘输入的代码示例
aspose.words合并单元格的代码
ASP.NET常用珍藏代码三
关于虚拟空间的System.Web.HttpUnhandl
上篇:asp.net动态生成WORD并填充内容
网站备案号:滇ICP备11001339号-7
Copyright 2007-2021-forever Inc. all Rights Reserved.
Email:dzwebs@126.com QQ:83539231 访问统计