If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Help with years...

Hi there...I am creating a drop-down with years. Now I need to display 10 years starting from this year so 2007, 2008, 2009...2017. So next year the drop down will show 2008, 2009,....2018...I think year(Date+1) is pretty stupid to try...but I did and offcourse it doesnt work)

Field Type issue

Hey there... a <% Response.write(Year(Date)+1)%> gives a correct answer...however as you mentioned the field type of the field is varchar and length is 2, whereas I was trying to insert 2007 or 2008. So I will have to do a right something to get only the last 2 digits...

This seems to work so far...yay
<option value='<%=right(Year(Date)+1, 2) %>'><%=thisyear+1 %></option>