title: Why can't I correctly parse this date string with NSDateFormatter?
body: <p>I'm trying to parse a string that was generated by an NSDateFormatter using another NSDateFormatter with the same format.</p>
  
  <p>Rather than trying to make that previous sentence make sense, here's some code:</p>
  
  <pre><code>NSDateFormatter *format = [[NSDateFormatter alloc] init];
  [format setDateFormat:@"MMM dd, YYYY HH:mm"];
  
  NSDate *now = [[NSDate alloc] init];
  
  NSString *dateString = [format stringFromDate:now];
  
  NSDateFormatter *inFormat = [[NSDateFormatter alloc] init];
  [inFormat setDateFormat:@"MMM dd, YYYY HH:mm"];
  
  NSDate *parsed = [inFormat dateFromString:dateString];
  
  NSLog(@"\n"
        "now:        |%@| \n"
        "dateString: |%@| \n"
        "parsed:     |%@|", now, dateString, parsed);
  </code></pre>
  
  <p>When I run this code, I expect that <em>parsed</em> would contain the same date as <em>now</em> but instead I get the following output:</p>
  
  <pre>
  now:        |2009-05-04 18:23:35 -0400| 
  dateString: |May 04, 2009 18:23| 
  parsed:     |2008-12-21 18:23:00 -0500|
  </pre>
  
  <p>Anybody have any ideas why this is happening?</p>