title: Formatting a Date String using NSDateFormatter
body: <p>I have a NSString which is passed from an xml feed........</p>
  
  <pre><code>NSString *strDate =@"May 14 2010";
  </code></pre>
  
  <p>I'm currently using this code to format the date........</p>
  
  <pre><code>NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
  [dateFormatter setDateStyle:NSDateFormatterMediumStyle];
  [dateFormatter setTimeStyle:NSDateFormatterShortStyle];
  [dateFormatter setDateFormat:@"d:MMM"];
  NSDate *myDate = [dateFormatter dateFromString:strDate];
  NSLog(@"%@", [dateFormatter stringFromDate:myDate]);
  </code></pre>
  
  <p>I want to format my string only to display day and month and currently I'm getting a nil value to the NSDate. Can anyone please help me with this?......</p>
  
  <p>Thanks.</p>