title: How to get date in "yyyy-MM-dd'T'HH:mm:ss.SSSZ" format?
body: <p>i have date in this format 2014-09-20 04:45:20 +0000 and i need to convert this to yyyy-MM-dd'T'HH:mm:ss.SSSZ format.I tried with the following code</p>
  
  <pre><code>NSDateFormatter * formatter = [[NSDateFormatter alloc] init];
              [formatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"];
              NSDate *date = [formatter dateFromString:@"2014-09-20 04:45:20 +0000"];
              NSLog(@"%@",date);
  </code></pre>
  
  <p>but date giving me null value..</p>
  
  <p>I am geting 2014-09-20 04:45:20 +0000 from time picker so anythg needs to be done on picker side will also help me.</p>