title: Is there a simple way of converting an ISO8601 timestamp to a formatted NSDate?
body: <p>If I use the following code:</p>
  
  <pre><code>NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];   
  [dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm"];
  NSDate *myDate = [dateFormatter dateFromString:@"2010-01-28T15:22:23.863"];
  NSLog(@"%@", [dateFormatter stringFromDate:myDate]);
  </code></pre>
  
  <p>It is successfully converted to a <code>Date</code> object, however, I cannot seem to format it any other way than <code>yyyy-MM-dd'T'HH:mm</code>, i.e. what gets logged is <code>2010-01-28T15:22:23</code></p>
  
  <p>If I change the dateFormat to say <code>[dateFormatter setDateFormat:@"yyyy-MMMM-d'T'HH:mm"];</code> the Date object is null...</p>
  
  <p>So my ultimate question is how to format an ISO8601 timestamp from a SQL database to use, for instance, <code>NSDateFormatterMediumStyle</code> to return "January 1, 2010"?</p>