27. april 2005 - 11:15
#1
her er en komboboks med dato'er frem af..
for at det skal gå bagud skal der bare minus ud for tallene i
fx
="<%Response.write(DateAdd("D", 5, Date))%
til
="<%Response.write(DateAdd("D", -5, Date))%
den udskriver datoen 5 dage bagud.
ret "D" til "M" er det 5 måneder bagud
<select name="datoer" style="border-style:groove;">
<option value="<%Response.write(DateAdd("D", 5, Date))%>" selected><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 5, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 6, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 6, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 7, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 7, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 8, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 8, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 9, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 9, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 10, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 10, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 11, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 11, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 12, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 12, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 13, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 13, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 14, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 14, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 15, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 15, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 16, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 16, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 17, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 17, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 18, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 18, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 19, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 19, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 20, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 20, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 21, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 21, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 22, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 22, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 23, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 23, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 24, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 24, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 25, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 25, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 26, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 26, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 27, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 27, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 28, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 28, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 29, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 29, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("M", 1, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("M", 1, Date))%>
</font></option>
<option value="<%Response.write(DateAdd("D", 32, Date))%>"><font face="Verdana" size="2">
<%Response.write(DateAdd("D", 32, Date))%>
</font></option>
</select>