title: Converting timestamp string with T and Z characters to NSDate
body: <p>I don't know how to convert this string to NSDate.</p>
  
  <p>Date is in this format "2012-10-21T07:00:00Z"</p>
  
  <p>I guess the problem is that I have no clue what those T and Z mean in the string :)</p>
  
  <pre><code>NSDateFormatter *formatter = [[NSDateFormatter alloc]init];
  [formatter setDateFormat:@"yyyy-MM-ddTHH:mm:ssZ"];
  NSDate *dateStart = [formatter dateFromString:@"2012-10-21T07:00:00Z"];
  
  // format that I want
      [formatter setDateFormat:@"yyyy-MM-dd HH:mm"];
  
  NSLog(@"date: %@", [formatter stringFromDate:dateStart]);
  </code></pre>
  
  <p>all dates are in that format: <code>2014-09-12T03:46:25Z</code></p>