关于用ASP提取日期格式问题如1-1日怎样提取成01-01日?
如题,我写了一段循环生成月、日的代码如下:
<select name= "month " size= "1 " id= "select3 ">
<%for i=1 to 12 %>
<%if i=month(now()) then%>
<option value= <%=i%> selected> <%=i%> </option>
<%else%>
<option value= <%=i%> > <%=i%> </option>
<%end if%>
<%next%>
</select>
月
<select name= "day " size= "1 " id= "select4 ">
<%for i=1 to 31 %>
<%if i=day(now()) then%>
<option value= <%=i%> selected> <%=i%> </option>
<%else%>
<option value= <%=i%> > <%=i%> </option>
<%end