我有A,B,C,D四个数,要把它输入到数据库
假设
A对应时间2009-12-1
B对应时间2009-12-2
C对应时间2009-12-3
D对应时间2009-12-4
接下去就是自动循环
A 2009-12-5
B 2009-12-6
C 2009-12-7
D 2009-12-8
一直循环到本月结束
<% a=formatdatetime("2009-12-2",2) b=formatdatetime("2009-12-30",2) c=Datediff("d",a,b) m=0 for i=0 to c m=m+1
select case m case 1 response.write "A:" & DateAdd("d",i,a) & "<br>" case 2 response.write "B:" & DateAdd("d",i,a) & "<br>" case 3 response.write "C:" & DateAdd("d",i,a) & "<br>" case 4 response.write "D:" & DateAdd("d",i,a) & "<br>" end select if m>=4 then m=0 end if next
%>