title: Format NSString 2015-05-24T20:10:00.000Z to M/d, h:mma (5/24, 8:00PM)
body: <p>I have an <code>NSString</code> <code>@"2015-05-24T20:10:00.000Z"</code>, and I am using an <code>NSDateFormatter</code> with the date format <code>@"yyyy-MM-dd'T'HH:mm:ssZ"</code>, but it always returns <code>nil</code>.</p>
  
  <p>I am using the following code, but the output is always (null).</p>
  
  <pre><code>NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
  // NSString *input = @"2013-05-08T19:03:53+00:00";
  [dateFormat setDateFormat:@"yyyy-MM-dd'T'HH:mm:ssZ"]; //iso 8601 format
  NSDate *date = [dateFormat dateFromString:[dictScheduleData valueForKey:@"scheduledOn"]]; // coming from the server 2015-05-24T20:10:00.000Z
  NSLog(@"Date output: %@", date);
  </code></pre>