title: Get desired date object
body: <p>I have a string:</p>
  
  <pre><code>NSString* string=@"2014-10-02 18:15:00 +0000";
  </code></pre>
  
  <p>How can I get date object with this string?</p>
  
  <p>I tried:</p>
  
  <pre><code>  NSString* string=@"2014-10-02 18:15:00 +0000";
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    [dateFormatter setDateFormat:@"yyyy-MM-dd hh:mm:ss Z"];
    NSDate *mydate = [dateFormatter dateFromString:string];
    NSLog(@"mydate = %@",mydate);
  </code></pre>
  
  <p><code>mydate</code> logs null value. I was expecting to log 2014-10-02 18:15:00 +0000.</p>
  
  <p>All I want is to have date object which can be compared to another date object that displays 2014-10-02 18:15:00 +0000 when logged.</p>