title: How to convert MySQL datetime to NSDate?
body: <p>MySQL returns this datetime: <em>2014-05-07T16:58:44.000Z</em></p>
  
  <p>How, <strong>with what datetime format</strong> I can create <strong>NSDate</strong>?</p>
  
  <p>I far as I found this, but it does not work:</p>
  
  <pre><code>NSDateFormatter *df = [[NSDateFormatter alloc] init];
  [df setDateFormat:@"yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'"];
  NSDate *date = [df dateFromString: valueStr];
  </code></pre>