add: if (yearSelected < 100) { yearSelected += 2000; } 
context: function parseDate (date, format) {	var dateFormat = format;	var formatChar = ' ';	var aFormat = dateFormat.split(formatChar);	if (aFormat.length < 3) {		formatChar = '/';		aFormat = dateFormat.split(formatChar);		if (aFormat.length < 3) {			formatChar = '.';			aFormat = dateFormat.split(formatChar);			if (aFormat.length < 3) {				formatChar = '-';				aFormat = dateFormat.split(formatChar);				if (aFormat.length < 3) {					formatChar = '';					// invalid date format				}			}		}	}	var tokensChanged = 0;	if (formatChar != "") {		aData =	date.split(formatChar);			// use user's date		for (i=0; i<3; i++) {			if ((aFormat[i] == "d") || (aFormat[i] == "dd")) {				dateSelected = parseInt(aData[i], 10);				tokensChanged++;			} else if ((aFormat[i] == "m") || (aFormat[i] == "mm")) {				monthSelected = parseInt(aData[i], 10);				tokensChanged++;			} else if ((aFormat[i] == "yyyy") || (aFormat[i] == "yy")) {				yearSelected = parseInt(aData[i], 10);				tokensChanged++;			} else if (aFormat[i] == "mmm") {				for (j=0; j<12; j++) {					if (aData[i] == monthName[j]) {						monthSelected=j;						tokensChanged++;					}				}			} else if (aFormat[i] == "mmmm") {				for (j=0; j<12; j++) {					if (aData[i] == monthName2[j]) {						monthSelected = j;						tokensChanged++;					}				}			}		}	}		return yearSelected + "-" + (monthSelected < 10 ? "0" : "") + monthSelected + "-" + (dateSelected < 10 ? "0" : "") + dateSelected;}
meta: 8910	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8910/3a4e67a046b43047efda4bcf32d745a74ee8bafb/statistics.js/buggy/trunk/js/statistics.js