标题:这个怎么实现?(已解决)
只看楼主
melack
Rank: 1
等 级:新手上路
帖 子:230
专家分:0
注 册:2006-9-27
 问题点数:0 回复次数:0 
这个怎么实现?(已解决)

1月 1号 2号。。。。31号
2月 1号 2号。。。。
4月
.
.
.
12月

这个怎么循环出来啊 月分的天数不能错


<%for i =1 to 12%>
<table width="100%" height="52" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="26"><%=i%>月
<%thismonth=year(date)&"-"&i&"-1" '当前月的第一天
nextmonth=dateadd("m",1,thismonth) '下个月的第一天
num=datediff("d",thismonth,nextmonth)
response.Write num%></td>
</tr>
<tr>
<td height="26">&nbsp;</td>
</tr>
</table>
<%next%>

[此贴子已经被作者于2007-5-8 9:32:38编辑过]

2007-05-08 08:59



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-137557-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.792297 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved