Admin | 2007-11-6 15:41:50 | 被阅次数 | 15147
//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会员贴子!
使用.NET如何实现视频播放中篇
如何用.net打包自动安装数据库上篇
Close()方法 Dispose()方法 区别
vb6.exe - 应用程序错误的原因及解决办
XML与DataSet(DataTable)数据互转源代
asp.net学习心得体会
RadioButtonList与JS 取值赋值
使用webservice上传文件的示例代码
页面回发滚动条位置不变
数据库连接超时、连接达到最大池大小的
关于虚拟空间的System.Web.HttpUnhandl
ASP.NET常用珍藏代码六
制作留言板不使用数据库之asp.net操作X
RegisterClientScriptBlock和RegisterS
c# winform获取鼠标在屏幕中的位置
长篇大论—图文解说DridView、DataList
(“/”应用程序中的服务器错误)ASP.NET
asp.net中的First,FirstOrDefault,Sing
VS2005发布网站与生成网站的区别
程序设计中遇到的void到底是什么意思
网站备案号:滇ICP备11001339号-7
Copyright 2007-2021-forever Inc. all Rights Reserved.
Email:dzwebs@126.com QQ:83539231 访问统计