title: iOS reading UTC time with NSDateFormatter
body: <p>I have a date string like this <strong>"2013-04-25T08:00:00.000+0000"</strong> what is the right way to read it as a date.</p>
  
  <p>I tried all this:</p>
  
  <p><a href="https://stackoverflow.com/questions/2997062/how-to-convert-nsdate-into-unix-timestamp-iphone-sdk">How to convert NSDate into unix timestamp iphone sdk?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/16065701/ios-proper-formatting-of-timestamps-between-mysql-apache-and-ios-nsdate">iOS - Proper formatting of timestamps between mySQL (apache) and iOS (NSDate)</a></p>
  
  <p><a href="https://stackoverflow.com/questions/6407057/converting-timestamp-to-nsdate-format">converting timestamp to nsdate format</a></p>
  
  <p>and I tried this too:</p>
  
  <pre><code>+(NSDate *)dateFromUTCTimeStamp:(NSString *)dateString
  {
      NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
      dateFormatter.dateFormat = @"yyyy-MM-dd'T'HH:mm:ss'Z'";
      NSTimeZone *gmt = [NSTimeZone timeZoneWithAbbreviation:@"GMT"];
      [dateFormatter setTimeZone:gmt];
      NSDate *timeStamp = [dateFormatter dateFromString:dateString];
      return timeStamp;
  }
  </code></pre>
  
  <p>everything returns nil, I know I am making a simple mistake but need some help.</p>