永发信息网

asp中怎么取得星期值?

答案:2  悬赏:50  手机版
解决时间 2021-03-19 16:57
  • 提问者网友:记得曾经
  • 2021-03-19 00:58
就是“星期一”这种格式
最佳答案
  • 五星知识达人网友:时间的尘埃
  • 2021-03-19 02:22
<%response.write weekday()%>
WeekDay(Date) 返回 0 -- 6, 0 表示星期天, 6表示星期六
返回中文的话,用 WeekdayName(Weekday(Date))
全部回答
  • 1楼网友:独钓一江月
  • 2021-03-19 03:06
<% time1=timer set con=server.createobject("adodb.connection") constr="provider=microsoft.jet.oledb.4.0;data source="&server.mappath("/database/test.mdb")&";" con.open constr %> <html> <head> <meta http-equiv="content-type" content="text/html; charset=gb2312"> <title>最快的asp分页方式</title> <style type="text/css"> <!-- table { font-size: 9pt; color: #333333; } --> </style> </head> <body> <table width="500" border="1" cellpadding="4" cellspacing="2"> <tr> <td width="169">id</td> <td width="309">分页方式</td> </tr> <% count=1 psize=20 id=request("id") if request.querystring("count")<>"" then count=clng(request.querystring("count")) if count<1 then count=1 end if end if if count=1 then sql="select top 20 id , pro_name from product" else sql="select id,pro_name from product" end if set rs=server.createobject("adodb.recordset") rs.open sql,con,1,1 rs.move (count-1)*20 for i=0 to 19 %> <tr> <td><%=rs("id")%></td> <td><%=rs("pro_name")%></td> </tr> <% id=rs("id") rs.movenext next %> <tr> <td colspan="2" align="right"><a href="javascript:history.go(-1)">上一页</a> <a href="fy.asp?count=<%=count+1%>&id=<%=id%>">下一页</a></td> </tr> </table> <%rs.close set rs=nothing%> </body> </html> <% con.close set con=nothing time2=timer response.write((time2-time1)*1000) %>
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯