摘要:
代码如下: // java code //y-年,m-月,d-日期 string CaculateWeekDay(int y,int m, int d) { if(m==1||m==2) { m+=12; y--; } int week=(d+2*m+3*(m+1)/5+y+y/4-y/100+y/400)%7; string weekstr=""; s... 阅读全文
posted @ 2010-07-12 21:36
握薪尝蛋
阅读(230)
评论(0)
推荐(0)
摘要:
今天在CSDN上解答了一个帖子,顺便写了这样一个函数。 每周按从周一开始,周日结束。 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--///<summary>///获取指定月份指定周数的开始日期///</summary>... 阅读全文
posted @ 2010-07-12 21:19
握薪尝蛋
阅读(1147)
评论(0)
推荐(0)

浙公网安备 33010602011771号