This topic is locked

Date Drop Down Year Range

2/21/2010 9:30:45 PM
ASPRunnerPro General questions
J
johnmo author

The default of the year box in a date field seems to be

1910 to 2020

No amount of searching can find where this is set.

I would like to be able to control this range to preset to this year but not force anything in the day and month fields. (IE NOW() does not quite do it.

J
Jane 3/4/2010

John,
find and edit this code in the generated include/runnerJS/RunnerControl.js file:

var currentYear = dt.getFullYear();

var startYear = currentYear-100;

var endYear = currentYear+10;
L
luic 3/16/2010



John,
find and edit this code in the generated include/runnerJS/RunnerControl.js file:

var currentYear = dt.getFullYear();

var startYear = currentYear-100;

var endYear = currentYear+10;


L
luic 3/16/2010

I would suggest if the year start can be assigned based on individual project or ideally for each date control instead of "hardcoded" in the javascript.
Thanks.