title: iOS create date from string
body: <p>How can I make this format in iOS: "Mon Jan 26 07:57:33 +0000 2015"?</p>
  
  <p>I have tried this</p>
  
  <pre><code>NSString *createdAt=@"Mon Jan 26 07:57:33 +0000 2015";
  NSDateFormatter *formatter=[[NSDateFormatter alloc]init];
  [formatter setDateFormat:@"ddd MMM dd HH:mm:ss zzzz yyyy"];
  NSTimeZone *gmt = [NSTimeZone timeZoneWithAbbreviation:@"GMT"];
  [formatter setTimeZone:gmt];
  NSDate *date=[formatter dateFromString:createdAt];
  </code></pre>
  
  <p>but this returns me nil always</p>