title: Need to convert RSS post title to NSString
body: <p>So I am making a calendar out of an RSS feed, where the date for the event is the title of the rss post. The code I have converts the title to a usable date and then an integer to select an image for the table cell image. But, the title is not a string it is set like this:
  I am trying to pull in the title, convert it to a date, that formats it to just the day of the month, i.e. if the post title is 01232011, it will format it as a date down to just 23, then the if statements will specify which image to set for the cell, so it will be like if (dateChooser == 23) then it will set the image of the cell to Cal23.png. So I am making a table view calendar. The title of the post is essentially specifying which calendar icon to set for that cell. But I can't get it to read the @"title" properly.</p>
  
  <pre><code>[item setObject:currentTitle forKey:@"title"]; 
  </code></pre>
  
  <p>I need to have @"title" be equal to an NSString to work.</p>
  
  <p>Full code</p>
  
  <pre><code>NSString *dateStr = @"title"
  
  NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
  [dateFormat setDateFormat:@"MMddyyyy"];
  NSDate *date = [dateFormat dateFromString:dateStr];  
  
  // Convert date object to desired output format
  [dateFormat setDateFormat:@"dd"];
  dateStr = [dateFormat stringFromDate:date];  
  int dateChooser;
  dateChooser = [dateStr intValue]; 
  [dateFormat release];
  
  cell.textLabel.text = dateStr;
  cell.detailTextLabel.text = [[stories objectAtIndex:indexPath.row] objectForKey:@"summary"];  
  
  if (dateChooser == 1) {
      UIImage* theImage = [UIImage imageNamed:@"cal1.png"];
      cell.imageView.image = theImage;
      [theImage release];
  }if (dateChooser == 2) {....
  </code></pre>
  
  <p>but it @"title" isn't a string. I tested it with     NSString *dateStr = @"10012011"; which worked, an example post title in the blog I am using is 10012011</p>