Question: the date Picker I have right now has the style like : mm/dd/YYYY and it displays at Textfield in "YYYY/MM/DD".

how can I change my code so that the datepicker shown is also changed to " YYYY/MM/DD".
Here is my code:

```
NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar] ;
        NSDate *currentDate = [NSDate date];
        NSDateComponents *comps = [[NSDateComponents alloc] init] ;
        [comps setYear:-10];
        NSDate *maximumDate = [calendar dateByAddingComponents:comps toDate:currentDate  options:0];
        [comps setYear:-10];
        NSDate *minimumDate = [calendar dateByAddingComponents:comps toDate:currentDate  options:0];

        UIDatePicker *datePicker = [[UIDatePicker alloc]init];
        datePicker.datePickerMode = UIDatePickerModeDate;
        [datePicker setMaximumDate:maximumDate];
        [datePicker setMinimumDate:minimumDate];
        [datePicker addTarget:self action:@selector(datePickerValueChanged:) forControlEvents:UIControlEventValueChanged];
        [self.Birthday setInputView:datePicker] ; 

```

Answer: 
What about:

```
string[] parts = s.Split(',').Select(x => x.Trim()).ToArray();

```
```
var parts = s.Split(',').Select(part => part.Trim());

```