Range of Dates in a drop down box |
1/13/2007 10:28:10 AM |
ASPRunnerPro General questions | |
G
grinningdog author
I have a field that is a date of birth. I'm using a simple drop down box but the years suggested to me are 1997 - 2017. Because I want to limit the age of users I need the range to be 1935 - 1993. Is that possible? |
|
K
|
kerrykerzman 1/14/2007 |
I had the same problem and ended up switching to the single text box for my date of birth fields. |
J
|
Jane 1/15/2007 |
Hi, for x=Year(d)-50 to Year(d)+50 and replace with required values of year. For example: for x=1900 to 2050 |
G
|
grinningdog author 1/15/2007 |
Hi Jane |
![]() |
Sergey Kornilov admin 1/15/2007 |
Do I understand this correct you use For x=1900 to 2050 code and it displays years from 1997 to 2017? |
G
|
grinningdog author 1/16/2007 |
Yes absolutely. I checked the code etc (the section above is a straight cut and paste from aspfunction.asp) I rebooted in case it was a cache thing, I even tried on another PC. Do I understand this correct you use For x=1900 to 2050 code and it displays years from 1997 to 2017? |
G
|
grinningdog author 1/16/2007 |
Errr... should I be in includes/commonfunctions.asp? |
![]() |
Sergey Kornilov admin 1/16/2007 |
Yes, this needs to be modified in include/commonfunctions.asp file. |
G
|
grinningdog author 1/17/2007 |
No problem at all. It works perfectly now. |
![]() |
Sergey Kornilov admin 1/17/2007 |
Just ignore aspfunctions.asp for now. It will be gone in the next update. |