         if pickerView == pickerServices {
             return self.application.services.count
         }
+        if pickerView == datePicker{
+            return 10
+        }
         return 10
     }
     

    
    // returns the number of 'columns' to display.
    func numberOfComponentsInPickerView(pickerView: UIPickerView!) -> Int{
        return 1
    }
    

        // Dispose of any resources that can be recreated.
    }
    
    // A date formatter to format the `date` property of `datePicker`.
    lazy var dateFormatter: NSDateFormatter = {
        let dateFormatter = NSDateFormatter()
        
        dateFormatter.dateStyle = .FullStyle

        return dateFormatter
        }()
    
    // A time formatter to format the `date` property of `timePicker`.
    lazy var timeFormatter: NSDateFormatter = {
        let dateFormatter = NSDateFormatter()
        
        dateFormatter.timeStyle = .ShortStyle
        
        return dateFormatter
        }()
    
    // MARK: Configuration
    
    func configureDatePicker() {
        datePicker.datePickerMode = .Date
        
        // Set min/max date for the date picker.
        // As an example we will limit the date between now and 7 days from now.
        let now = NSDate()
        datePicker.minimumDate = now
        
        let currentCalendar = NSCalendar.currentCalendar()
        let dateComponents = NSDateComponents()
        
        datePicker.date = now
        datePicker.addTarget(self, action: "updateDatePickerLabel", forControlEvents: .ValueChanged)
    }
    
    func updateDatePickerLabel() {
        dateTxtField.text = dateFormatter.stringFromDate(datePicker.date)
    }
    
    func updateTimePickerLabel() {
        timeTxtField.text = timeFormatter.stringFromDate(timePicker.date)
    }
    
    func configureTimePicker() {
        timePicker.datePickerMode = .Time
        let now = NSTimeInterval()
        
        timePicker.addTarget(self, action: "updateTimePickerLabel", forControlEvents: .ValueChanged)
    }
    
    
    func buttonAction() {
        let request = HTTPrequests()
        if self.application.userInfo["userType"] as String == "client" {
