|
出来るのだASP Q&A掲示板(過去LOG)
訪問数 52046
昨日 889
今日 776 【PR】 パソコン入門からIT専門書まで幅広く取り揃えています。セブン-イレブン受取り手数料無料のセブンアンドワイ。 |
Topに戻る
掲示板に戻る
検索
削除
管理者
|
| [2315] Re:曜日指定で年月日をとりたい・・・ |
| 投稿者:北岳さん 2002/07/11 19:10:07 |
| ---------------- 1.asp -------------- <% public w(7) w(1)="日曜日": w(2)="月曜日": w(3)="火曜日": w(4)="水曜日" w(5)="木曜日": w(6)="金曜日": w(7)="土曜日" p=CInt(Request.form("w1")) '---- function youbi(x) i=WeekDay(x) youbi=w(i) end function '---- %> <html><body> <p>本日 <br> <%= date() %> (<%= youbi(date()) %>) <form action="1.asp" method=post> <% for i=1 to 7 if i=p then s=" checked" else s="" %> <input type="radio" name="w1" value="<%= i %>"<%= s %>><%= w(i) %><br> <% next %> <input type="submit" value=" GO "> </form> <% if p>0 then response.write "<br>今月の" & w(p) & "は:" t=date d=0 do while month(t)=month(date) if WeekDay(t)=p and d>0 then response.write "<br>" & t d=d+1 t=DateSerial(year(date),month(date),d) loop end if %> 面白そうなのでやってみましたが、ちょっと見づらいですね。 |
![]()
曜日指定で年月日をとりたい・・・
あいあいさん
[2002/07/11 14:57:57]
[2312]
|
Re:曜日指定で年月日をとりたい・・・
北岳さん
[2002/07/11 19:10:07]
[2315]
Re:曜日指定で年月日をとりたい・・・
あいあいさん
[2002/07/12 10:48:25]
[2320]
|
|
TreeBBS For ASP V.0.1.3 |