title: JSON date to NSDate Issue
body: <p>I have a date string in JSON format, it looks like this:
  2013-05-22T10:54:40.437</p>
  
  <p>And I'm trying to convert it to NSDate.</p>
  
  <pre><code>- (NSString *)dateFromString:(NSString *)datestring{
      // Convert string to date object
      NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
      [dateFormat setDateFormat:@"yyyy'-'MM'-'dd'T'HH':'mm':'ss"];
  
      NSDate *date = [dateFormat dateFromString:datestring];
      //date is nil here.
      NSDateFormatter *newDateFormatter = [[NSDateFormatter alloc]init];
      [newDateFormatter setDateFormat:@"MM/dd/yyyy"];
      NSString *newString = [newDateFormatter stringFromDate:date];
      NSLog(@"Date -- %@",datestring);
  
  
      return newString;
  }
  </code></pre>
  
  <p>But date is nil after dateFromString.  Does anyone know what I did wrong here?
  Thanks!</p>