rem: bits['yyyy'] = date.getYear(); 
add:  var yearStr = "" + date.getYear(); yearStr = (yearStr.length == 2) ? '19' + yearStr: yearStr; bits['yyyy'] = yearStr; 
context: function formatDate(date) {    var bits = new Array();    bits['d'] = date.getDate();    bits['dd'] = pad(date.getDate(),2);    bits['dddd'] = dayNames[date.getDay()];    bits['M'] = date.getMonth()+1;    bits['MM'] = pad(date.getMonth()+1,2);    bits['MMM'] = monthShortNames[date.getMonth()];    bits['MMMM'] = monthLongNames[date.getMonth()];    bits['yyyy'] = date.getYear();    bits['yy'] = bits['yyyy'].toString().substr(2,2);    var frm = new String(gFormat);    var sect;    for (sect in bits) {      frm = eval("frm.replace(/\\b" + sect + "\\b/,'" + bits[sect] + "');");    }    return frm;}
meta: 2970	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2970/5576796a3134f5a43475939dd72c22efe3aac108/Calendar.js/clean/framework/src/net/sf/tapestry/form/Calendar.js