Bret
Posts: 13
|
| Posted: 05/15/2007, 2:24 PM |
|
I have a textbox that a user fills in with a date. Both the project and the textbox have the format set to 'mm/dd/yyyy' - but the user still types in '01/01/07' and presses the icon for the datepicker. The calendar comes up as 01/01/1907, but the user wants it to be 01/01/2007
Now there should be a way to correct that. I found a line of code in datepicker.js that did the following ->
var centuryDigits = (last2Digits>=50)?1900:2000;
resultDateArray[YEAR_POS] = centuryDigits + last2Digits;
But no matter how I altered that - same results. Any Ideas ? Am I looking in the wrong place ?
|