hungnguyen
Programmer
Hi helper,
I am doing a website, but there is a need of a dropdown list for years, from the past 10 years upto the next 10 years of the current year. For example, this year is 2000; so that I would like to put into my dropdown menu from the year 1990 to 2010. This should be automatically calculated by the system clock. I did think many ways: VBScrip, JavaScript, and ASP. But they are not the final solution. Be side the question I ask above. There is anothe question. That is how to get the current year from the system in ASP. I know that to get the current system date is by the ASP code
<% date_test = date %>
but I do not know how to get the system current year directly (I meant without string concatination).
Thanks for your help.
Hung
I am doing a website, but there is a need of a dropdown list for years, from the past 10 years upto the next 10 years of the current year. For example, this year is 2000; so that I would like to put into my dropdown menu from the year 1990 to 2010. This should be automatically calculated by the system clock. I did think many ways: VBScrip, JavaScript, and ASP. But they are not the final solution. Be side the question I ask above. There is anothe question. That is how to get the current year from the system in ASP. I know that to get the current system date is by the ASP code
<% date_test = date %>
but I do not know how to get the system current year directly (I meant without string concatination).
Thanks for your help.
Hung