title: NSDateFormatter iOS, date pattern
body: <p>I just simply can't figure out how to set NSDateFormatter date format so [formatter dateWithString:] does not return a nil.</p>
  
  <p>The date looks as follows :</p>
  
  <blockquote>
    <p>2008-08-18T14:32:22.1875000+01:00</p>
  </blockquote>
  
  <p>I tried </p>
  
  <pre><code>formatter setDateFormat:@"yyyy-MM-ddTHH:mm:ss.fffffffzz+GMT"];
  </code></pre>
  
  <p>Doesn't seem to work :(. Any suggestions, please help.</p>
  
  <p>Ok thanks for answering, it seems like I mislead people with my question a little so I try to rephrase it, sorry for that, maybe its just bit late for programming. I need a date wrapper object so I don't have to parse the string containing the date myself. Basically I get a string from a Database I need to parse to I can use it in my UI.</p>
  
  <pre><code>NSDateFormatter *formatter = [[NSDateFormatter alloc] init];    
  formatter.dateFormat = @"yyyy-MM-dd'T'HH:mm:ss.SSSSSSSZZZZ";
  formatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"];
  NSDate *date = [formatter dateFromString:@"2008-08-18T14:32:22.1875000+01:00"];
  NSLog(@"%@", date);
  </code></pre>
  
  <p>That prints nil</p>
  
  <p>What I want is NSString->NSDat, so I can ask it maybe what month it contains, or what time it contains. I see now that NSDate does not have such method. That was a foolish thing to assume. Any Ideas,now?</p>