Admin | 2007-11-6 15:41:50 | 被阅次数 | 15399
//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会员贴子!
在ASP.NET中使用AJAX无刷新技术的简单
c# 虹软2.2版本 listview让item自动选
ASP.NET常用珍藏代码二
WebClient.DownloadFile方法下载服务器
ASP.NET操作SQL之SQL命令使用参数防注
asp.net(C#)压缩数据库的代码
asp.net遍历子文件夹的名称
批量更新数据库表中的数据
c# winform将打开的程序置于后台运行的
xmlhttp url字符太长导致无法传送的问
C#计算两个时间的差的代码
利用Ajax技术实现在线歌词搜索功能
利用Aspose.Words从文档中提取图像的代
asp.net学习心得体会
网站优化及效益篇—如何使用简单的代码
asp.net如何把数字0123变成ABCD
程序设计中遇到的void到底是什么意思
python操作鼠标(获取本机鼠标在屏幕中
获取随机时间的代码
遍历某文件夹下的图片名称
网站备案号:滇ICP备11001339号-7
Copyright 2007-2021-forever Inc. all Rights Reserved.
Email:dzwebs@126.com QQ:83539231 访问统计