For this purpose you will want to use NSDateFormatter .
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"YourDateInputFormat"];
Where you can find out what @"YourDateInputFormat"should be by reading the Data Formatting Guide, Section> Date Formats . You get NSDatefrom this:
NSDate *date = [formatter dateFromString:yourString];
Then change the formatting format to display the desired result:
[formatter setDateFormat:@"YourDateOutputFormat]
Then you can convert this date and get the desired line:
NSString *outString = [formatter stringFromDate:date];