title: NSDateFormatter with T-Z Time format
body: <p>I got a string in T-Z format such as "2015-12-12T05:30:03.634Z" from Google server. How can I convert it to format <code>"YYYY-MM-dd HH:mm:ss"</code> by <code>NSDateFormat</code>?</p>
  
  <p>I've tried some codes below, but always got (null) in variable dte.</p>
  
  <pre><code>+(NSDate*)tzStrToDateTime:(NSString*)tzStr{
    NSLog(@"Convert tzStr: %@ ",tzStr);
    NSString *tzFormat = @"yyyy-MM-dd'T'HH:mm:ss.SSSX";//2015-12-12T05:30:03.634Z
    NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
    [dateFormat setDateFormat:tzFormat];
    [dateFormat setTimeZone:[NSTimeZone timeZoneWithName:@"Asia/Taipei"]];
    NSDate *dte = [dateFormat dateFromString:tzStr];
    NSLog(@"to Date: %@", dte);
    return dte;
  }
  </code></pre>