<form name="form1" method="post" action="">
<select name="ny" id="ny">
<% for i=2000 to 2008
response.Write"<option value='"&i&"'"
if year(date())=i then response.Write"selected"
response.Write">"&i&"</option>"
next%>
</select>
年
<select name="nm" id="nm">
<% for i=1 to 12
if i<10 then
b="0"&i
else
b=i
end if
response.Write"<option value='"&b&"'"
if month(date())=i then response.Write"selected"
response.Write">"&b&"</option>"
next%>
</select>
月
<select name="nd" id="nd">
<% for i=1 to 31
if i<10 then
b="0"&i
else
b=i
end if
response.Write"<option value='"&b&"'"
if day(date())=i then response.Write"selected"
response.Write">"&b&"</option>"
next%>
</select>
日
<input type="submit" name="bt" value="提交">
</form>
<% bt=request.Form("bt")
today=request("ny")&","&request("nm")&","&request("nd")
if bt<>"" then
if isdate(today)=false then
response.Write "日期有误!"
else
response.Write today
end if
end if
%>