学会放弃

my blog is here

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

作者:Iasky | 文章出处:未知 | 阅读次数:10 | 发布日期:2005-03-26

前几天我问过,今天写出来了!!
Function CalculateWeekNo(BeginDate,EndDate,InputDate)
dim
wdate(500,8)
z=0
x=0
strlong=len(CStr(inputdate))-9
inputdate=cdate(left(CStr(inputdate),strlong))
for i=cdate(BeginDate) to cdate(EndDate)
if inputdate=i then
x=z
Exit For
end if
if weekday(i)=7 then
z=z+1
end if
next

CalculateWeekNo=x
end Function

posted on 2006-02-23 13:01  leohuang  阅读(315)  评论(0编辑  收藏  举报