                     case YEAR_ITEM:
                     {
                         yearList = createDateItemList(YEAR_ITEM, fieldPosition++, numItems);
-                        // remove this if we go with the year range dataprovider
                         yearList.wrapElements = false;
                         tempList = yearList;
                         break;

        // TODO: if we're using YearRangeList, recreate that to match new dates
    }
    
    private function findDateIndex(selectedDate:Date, dateList:IList):int
    {
        // index is how many days between the selected date and the first date
        var firstDate:Date = new Date(dateList.getItemAt(0).data);
        
        // set firstDate's hour/min/second to the same values
        firstDate.hours = selectedDate.hours;
        firstDate.minutes = selectedDate.minutes;
        firstDate.seconds = selectedDate.seconds;
        firstDate.milliseconds = selectedDate.milliseconds;
        
        var diff:Number = selectedDate.time - firstDate.time;
        var days:int = diff / MS_IN_DAY;
        
        return days;
    }
    
    // clean out the container: remove all elements, detach event listeners, null out references
    private function cleanContainer():void
    {

            dayMonthDateFormatter.setStyle("locale", localeStr);
        else
            dayMonthDateFormatter.clearStyle("locale");
    }
    
    //----------------------------------------------------------------------------------------------
