title: How to remove the timezone offset from an NSDate
body: <p>I am trying to get just <code>yyyy-MM-dd HH:mm</code> from an NSDateFormatter.</p>
  
  <p>But the string spits out <code>Historical Date: 2016-08-23 14:03:00 +0000</code> </p>
  
  <p>I do not want the seconds or the +0000.</p>
  
  <p>What am I doing wrong?</p>
  
  <pre><code>int seconds = -( days * (24 * 60 * 60)); //24 hours, times 60 minutes, times 60 seconds
  NSDateFormatter *format = [[NSDateFormatter alloc] init];
  [format setDateFormat:@"yyyy-MM-dd HH:mm"];
  
  NSString* stringFromDate = [format stringFromDate:[NSDate date]];
  NSDate * pastDate = [[format dateFromString:stringFromDate] dateByAddingTimeInterval:seconds];
  
  NSLog(@"Date: %@", pastDate);
  </code></pre>