context: function DateFormater( ){  // we get the date bundle in case the locale changes, can  // we be notified of a locale change instead, then we could  // get the bundle once.  this.dateStringBundle = srGetStrBundle("chrome://calendar/locale/dateFormat.properties");  // probe the dateformat    this.yearIndex = -1;  this.monthIndex = -1;  this.dayIndex = -1;  this.twoDigitYear = false;    var parseShortDateRegex = /^\s*(\d+)\D(\d+)\D(\d+)\s*$/; //digits & nonDigits  var probeDate = new Date(2002,3-1,4); // month is 0-based  var probeString = this.getShortFormatedDate(probeDate);  var probeArray = parseShortDateRegex.exec(probeString);  for (var i = 1; i <= 3; i++) {     switch (Number(probeArray[i])) {      case 02:    this.twoDigitYear = true; // fall thru      case 2002:  this.yearIndex = i;       break;      case 3:     this.monthIndex = i;      break;      case 4:     this.dayIndex = i;        break;    }  }  //All three indexes are set (not -1) at this point.}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/7610ccfc889abece016911ffeecd981aa1836c71/dateUtils.js/buggy/calendar/resources/content/dateUtils.js