|
- Dim rstTime,strSQL
- Dim strTime
- Dim newDate,stopDate
-
- set objDict= Server.CreateObject("Scripting.Dictionary") ' 字典对象
- strSQL="SELECT addtime,eddtime FROM Stardate"
- set rstTime=Conn.Execute(strSQL)
- While not rstTime.eof
- newdate =Cdate(rstTime(0))
- stopDate =Cdate(rstTime(1))
-
-
- do
- 'response.write(newdate & "<br />")
- objDict.Add """"&newdate&"""",true
- newdate = newdate + 1
- loop until newdate > stopdate
- rstTime.movenext
- Wend
- rstTime.Close
- set rstTime=Nothing
- strTime=Join(objDict.keys,",")
-
- Set objDict=nothing
复制代码
|
|