title: NSString to NSDate Wrong Result
body: <p>In my iOS app I am trying to convert a date I get in string format into an NSDate. I first put the string in the correct format but when it comes to changing it into an NSDate I get a different output date. In the code below I have put two NSLogs which shows that the string matches the date format so I am lost as to why the output is different.</p>
  
  <pre><code>NSString * list = @"Sun, 24 Mar 2013 21:08:02 +0000";
  NSArray *listItems = [list componentsSeparatedByString:@", "];
  //24 Mar 2013 21:08:02 +0000
  
  NSArray *listItems1 = [[listItems objectAtIndex:1] componentsSeparatedByString:@" "];
  NSString *timeSubString = [[listItems1 objectAtIndex:3] substringWithRange:NSMakeRange(0,5)];
  NSString * newConcat = [NSString stringWithFormat:@"%@-%@-%@ %@",[listItems1 objectAtIndex:0],[listItems1 objectAtIndex:1],[listItems1 objectAtIndex:2], timeSubString];
  NSLog(@"***DATE STRING***: %@",newConcat);
  //***DATE STRING***: 24-Mar-2013 21:08
  
  NSDateFormatter* fmt = [NSDateFormatter new];
  [fmt setDateFormat:@"dd-MMM-YYYY HH:mm"];
  NSDate* date = [fmt dateFromString:newConcat];
  NSLog(@"***OUTPUT DATE***: %@",date);
  //***OUTPUT DATE***: 2013-01-06 02:08:00 +0000
  NSLog(@"***DATE STRING***: %@", [fmt stringFromDate:date]);
  //***DATE STRING***: 05-Jan-2013 21:08
  </code></pre>