in cb date area year is from 1900 to 2119 ,
i just use date tab for birthdays
so i need years from 1940-1990 ... how shoul i hack the code?
i have tried to change
var y = defaultYear - 67;
if (digits == 2) {
yearsToShow = 50;
but now when a user sellect a day or mounth the year field is empty ,
i think i may make default year to 1970 or something , but i dont know how can i,
please help
could you please tell me how? i did try to change something in calendardateinput.js on line 664
from
var y = defaultYear - 107;
if (digits == 2) {
yearsToShow = 100;
to
var y = defaultYear - 67;
if (digits == 2) {
yearsToShow = 50;
but when a user add first a day or a mount the year is empty because 2007 is not in the range , so i need to change default year from 2007 to 1980 or something in the range , is it true my point of view? if so how could i change the default year from 2007 to 1980
I don't know if you have already got it, but, you don't really have to change much of the code.
There is a variable in calendardateinput.js that allows you to specify how many years are shown.
var yearsToShow = 220;
The default for yearsToShow is 220. If you change this, you can restrict the ending year. If you want to change the beginning year, then you will need to change more of the code.