So, if you need to have 2 different dates made as a drop down, here is the code:

<select id=”spk_date” name=”spk_date”>

<option selected=”selected” value=”">Select a Date</option>
<%
for counter = date()+1 to date()+60 %>
<option <% ‘ select the current date to display it
if counter = date() then %> <%
end if %> value=”<%= FormatDateTime(counter, 1) %>”><%= FormatDateTime(counter, 1) %></option>
<% next %>
</select>

What this does is list dates from tomorrow date()+1 all the way to dates 60 days in the future date()+60.

And then it lists it like this:

image

Hope that helps.

About Paul Ogier

Paul Ogier has written 202 posts.

Paul Ogier is an IT Guru, Website Developer, and generally a nice guy. He loves code and he loves design.

Incoming search terms for the article: