Alright. The problem we\'re having is that we have NSStrings filled with dates in the format of yyyyMMdd and what we want to do is to get the current weekday and name of mon
- (void) getMonthFromDate:(NSString *) stringDate
{
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"yyyy-MM-dd"];
NSDate *date = [dateFormat dateFromString:stringDate];
NSCalendar* calendar = [NSCalendar currentCalendar];
NSDateComponents* components = [calendar components:NSCalendarUnitYear|NSCalendarUnitMonth|NSCalendarUnitDay fromDate:date]; // Get necessary date components
NSLog(@"%lu", [components day]);
NSLog(@"%lu %@",[components day],[[dateFormat monthSymbols] objectAtIndex:[components month]]);
}