         
         calendar.locale = self.locale;
         
-        
         switch(mode) {
             case FxDatePickerMode.Date:
                component = DateComponent(calendar: calendar, order: ["month": 0, "day": 1, "year": 2]);

        let date = self.component.toDate();
        
        delegate.dateSelected(self, date: date);

    }
    
    func dateSelected(datePicker: FxDatePicker!, date: NSDate!) {
        return;

    }
    
    init() {
        let width = UIScreen.mainScreen().bounds.width;
        super.init(frame: CGRect(x: 0, y: 0, width: width, height: 216));
        initialize();
    }

    required init(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)!;
        let width = UIScreen.mainScreen().bounds.width;
        self.frame = CGRect(x: 0, y: 0, width: width, height: 216);
        initialize();
    }
    
